Create a multiproject nix #29

Merged
MasseR merged 3 commits from sandbox/MasseR/28-separate-lib into master 2018-08-29 23:06:23 +03:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit fdbd24a4bf - Show all commits

View File

@ -5,4 +5,8 @@
common = ./common;
backend = ./backend;
};
tools = with haskellPackages; [
ghcid
hasktags
];
}

View File

@ -8,6 +8,7 @@ in
{ packages
, overrides ? _ : _ : {}
, tools ? []
}:
let
@ -26,8 +27,8 @@ let
name = "${n}";
value = nixpkgs.buildEnv {
name = "${n}";
paths = [];
buildInputs = [deps];
paths = tools;
buildInputs = tools ++ [deps];
};
};
shells = nixpkgs.lib.listToAttrs (mapAttrsToList mkShell packages');