nix: Add a "dev" output

This gets rid of boehm-dev in the closure (as well as Nix's own
headers).
This commit is contained in:
Eelco Dolstra
2016-04-18 20:06:50 +02:00
parent 961ad19660
commit 21a2f2ba3b
5 changed files with 8 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ let
drvName = drv:
discard (substring 33 (stringLength (builtins.baseNameOf drv)) (builtins.baseNameOf drv));
rewriteHashes = drv: hashes: runCommand (drvName drv) { nixStore = "${nix}/bin/nix-store"; } ''
rewriteHashes = drv: hashes: runCommand (drvName drv) { nixStore = "${nix.out}/bin/nix-store"; } ''
$nixStore --dump ${drv} | sed 's|${baseNameOf drv}|'$(basename $out)'|g' | sed -e ${
concatStringsSep " -e " (mapAttrsToList (name: value:
"'s|${baseNameOf name}|${baseNameOf value}|g'"