diff options
author | tv <tv@krebsco.de> | 2017-06-30 09:44:28 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-30 09:44:28 +0200 |
commit | d0e8ea1a9e7f68e1a82e3ce9fb4577b7fb62f0bf (patch) | |
tree | 3a6ca4ff2f9c4f40a4b554c383fa3629a0601535 | |
parent | e9cc4f49e161e72c18c6e4da45b2bb95a5a2a010 (diff) |
shell: use writeOut to create cmdspkg
-rw-r--r-- | shell.nix | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -151,12 +151,9 @@ echo "$date.$version" ''; - shell.cmdspkg = pkgs.runCommand "shell.cmdspkg" {} /* sh */ '' - mkdir -p $out/bin - ${lib.concatStrings (lib.mapAttrsToList (name: path: /* sh */ '' - ln -s ${path} $out/bin/${name} - '') cmds)} - ''; + shell.cmdspkg = pkgs.writeOut "shell.cmdspkg" (lib.mapAttrs' (name: link: + lib.nameValuePair "/bin/${name}" { inherit link; } + ) cmds); in pkgs.stdenv.mkDerivation { name = "stockholm"; |