From aa8fb19044cebff2d9687ab975340a7c0c96990d Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 30 Jun 2017 09:44:28 +0200 Subject: shell: use writeOut to create cmdspkg --- shell.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/shell.nix b/shell.nix index 782b4fa3..dbc2b14f 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"; -- cgit v1.2.3