Tools support for nix
This commit is contained in:
parent
6865af361d
commit
fdbd24a4bf
@ -5,4 +5,8 @@
|
|||||||
common = ./common;
|
common = ./common;
|
||||||
backend = ./backend;
|
backend = ./backend;
|
||||||
};
|
};
|
||||||
|
tools = with haskellPackages; [
|
||||||
|
ghcid
|
||||||
|
hasktags
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ in
|
|||||||
|
|
||||||
{ packages
|
{ packages
|
||||||
, overrides ? _ : _ : {}
|
, overrides ? _ : _ : {}
|
||||||
|
, tools ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -26,8 +27,8 @@ let
|
|||||||
name = "${n}";
|
name = "${n}";
|
||||||
value = nixpkgs.buildEnv {
|
value = nixpkgs.buildEnv {
|
||||||
name = "${n}";
|
name = "${n}";
|
||||||
paths = [];
|
paths = tools;
|
||||||
buildInputs = [deps];
|
buildInputs = tools ++ [deps];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
shells = nixpkgs.lib.listToAttrs (mapAttrsToList mkShell packages');
|
shells = nixpkgs.lib.listToAttrs (mapAttrsToList mkShell packages');
|
||||||
|
Loading…
Reference in New Issue
Block a user