summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/shell.nix b/shell.nix
index 782b4fa31..dbc2b14fc 100644
--- a/shell.nix
+++ b/shell.nix
@@ -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";