mirror of
https://github.com/circuithub/rel8.git
synced 2024-09-12 00:07:34 +03:00
32 lines
609 B
Nix
32 lines
609 B
Nix
let
|
|
haskellNix = import (import ./nix/sources.nix)."haskell.nix" {};
|
|
|
|
nixpkgsSrc = haskellNix.sources.nixpkgs-2009;
|
|
|
|
nixpkgsArgs = haskellNix.nixpkgsArgs;
|
|
|
|
compiler-nix-name = "ghc8104";
|
|
|
|
pkgs = import nixpkgsSrc nixpkgsArgs;
|
|
|
|
in
|
|
pkgs.haskell-nix.project {
|
|
inherit compiler-nix-name;
|
|
|
|
cabalProjectLocal = builtins.readFile ./cabal.project.haskell-nix;
|
|
|
|
src = pkgs.haskell-nix.haskellLib.cleanGit {
|
|
name = "rel8";
|
|
src = ./.;
|
|
};
|
|
|
|
modules = [
|
|
{ packages.rel8 = {
|
|
preCheck = ''
|
|
export PATH="${pkgs.postgresql}/bin:${"$PATH"}"
|
|
'';
|
|
};
|
|
}
|
|
];
|
|
}
|