shell: use writeOut to create cmdspkg

This commit is contained in:
tv 2017-06-30 09:44:28 +02:00
parent c500d72ad8
commit aa8fb19044

View File

@ -151,12 +151,9 @@
echo "$date.$version" echo "$date.$version"
''; '';
shell.cmdspkg = pkgs.runCommand "shell.cmdspkg" {} /* sh */ '' shell.cmdspkg = pkgs.writeOut "shell.cmdspkg" (lib.mapAttrs' (name: link:
mkdir -p $out/bin lib.nameValuePair "/bin/${name}" { inherit link; }
${lib.concatStrings (lib.mapAttrsToList (name: path: /* sh */ '' ) cmds);
ln -s ${path} $out/bin/${name}
'') cmds)}
'';
in pkgs.stdenv.mkDerivation { in pkgs.stdenv.mkDerivation {
name = "stockholm"; name = "stockholm";