on db148ff help sign in
rel8/default.nix
31 lines 609 B history raw
1let
2 haskellNix = import (import ./nix/sources.nix)."haskell.nix" {};
4 nixpkgsSrc = haskellNix.sources.nixpkgs-2009;
6 nixpkgsArgs = haskellNix.nixpkgsArgs;
8 compiler-nix-name = "ghc8104";
10 pkgs = import nixpkgsSrc nixpkgsArgs;
12in
13pkgs.haskell-nix.project {
14 inherit compiler-nix-name;
16 cabalProjectLocal = builtins.readFile ./cabal.project.haskell-nix;
18 src = pkgs.haskell-nix.haskellLib.cleanGit {
19 name = "rel8";
20 src = ./.;
21 };
23 modules = [
24 { packages.rel8 = {
25 preCheck = ''
26 export PATH="${pkgs.postgresql}/bin:${"$PATH"}"
27 '';
28 };
29 }
30 ];