rel8/default.nix
Shane O'Brien 6360f10fb7 The beginning of rel8 1.0
Co-authored-by: Ollie Charles <ollie@ocharles.org.uk>
2021-03-23 13:34:02 +00:00

30 lines
539 B
Nix

let
haskellNix = import (import ./nix/sources.nix)."haskell.nix" {};
nixpkgsSrc = haskellNix.sources.nixpkgs-2009;
nixpkgsArgs = haskellNix.nixpkgsArgs;
compiler-nix-name = "ghc8103";
pkgs = import nixpkgsSrc nixpkgsArgs;
in
pkgs.haskell-nix.project {
inherit compiler-nix-name;
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "rel8";
src = ./.;
};
modules = [
{ packages.rel8 = {
preCheck = ''
export PATH="${pkgs.postgresql}/bin:${"$PATH"}"
'';
};
}
];
}