on iko/ghcjs-patch-master help sign in
Add comment regarding wrapping of -to-nix exes (#208)
9643221Moritz Angermann
nix-tools/default.nix+2
@@ -47,6 +47,8 @@ in
47 name = "nix-tools";
47 name = "nix-tools";
48 paths = builtins.attrValues hsPkgs.nix-tools.components.exes;
48 paths = builtins.attrValues hsPkgs.nix-tools.components.exes;
49 buildInputs = [ makeWrapper ];
49 buildInputs = [ makeWrapper ];
50+ # We wrap the -to-nix executables with the executables from `tools` (e.g. nix-prefetch-git)
51+ # so that consumers of `nix-tools` won't have to provide those tools.
50 postBuild = ''
52 postBuild = ''
51 for prog in stack-to-nix cabal-to-nix plan-to-nix; do
53 for prog in stack-to-nix cabal-to-nix plan-to-nix; do
52 wrapProgram "$out/bin/$prog" --prefix PATH : "${lib.makeBinPath tools}"
54 wrapProgram "$out/bin/$prog" --prefix PATH : "${lib.makeBinPath tools}"