Created
November 4, 2016 16:07
-
-
Save aljce/2d481a56e82b816bfeeba16211c70c49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
stdenv = pkgs.stdenv; | |
top-level = import ./top-level.nix { haskellPackages = pkgs.haskellPackages; | |
dontCheck = pkgs.haskell.lib.dontCheck; | |
testTopLevel = false; }; | |
in { | |
haskellEnv = stdenv.mkDerivation { | |
name = "haskell-env"; | |
version = "1.1.1.1"; | |
src = ./.; | |
buildInputs = [ pkgs.cabal-install top-level.frank.env ]; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pkgs = import <nixpkgs> { }; | |
in | |
{ haskellPackages ? pkgs.haskellPackages, | |
dontCheck ? pkgs.haskell.lib.dontCheck, | |
testTopLevel ? false, }: | |
let deps = import ../deps/deps.nix { inherit haskellPackages; inherit dontCheck; }; | |
test = if testTopLevel then x: x else dontCheck; | |
in rec { | |
frank = test (haskellPackages.callPackage ../frank/frank.nix deps); | |
backend-service = test (haskellPackages.callPackage ../backend/service/service.nix (deps // { inherit frank; })); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment