Skip to content

Instantly share code, notes, and snippets.

@aljce
Created November 4, 2016 16:07
Show Gist options
  • Save aljce/2d481a56e82b816bfeeba16211c70c49 to your computer and use it in GitHub Desktop.
Save aljce/2d481a56e82b816bfeeba16211c70c49 to your computer and use it in GitHub Desktop.
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 ];
};
}
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