shell: use writeOut to create cmdspkg
This commit is contained in:
parent
c500d72ad8
commit
aa8fb19044
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user