From 4ca4c886e4f2c0358154839a6cd155a2e91b5ead Mon Sep 17 00:00:00 2001 From: Matthew Justin Bauer Date: Mon, 11 Jun 2018 14:49:50 -0400 Subject: unix-tools.nix: install binary instead of linking This gives us a little smaller closure & was the original intent with unix-tools.nix. Some merge must have gotten rid of it. --- pkgs/top-level/unix-tools.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/top-level/unix-tools.nix b/pkgs/top-level/unix-tools.nix index 64979ba3234d..34d04fdec492 100644 --- a/pkgs/top-level/unix-tools.nix +++ b/pkgs/top-level/unix-tools.nix @@ -19,14 +19,12 @@ let in runCommand "${cmd}-${version}" { meta.platforms = map (n: { kernel.name = n; }) (pkgs.lib.attrNames providers); } '' - mkdir -p $out/bin - if ! [ -x "${provider}" ]; then echo "Cannot find command ${cmd}" exit 1 fi - ln -s "${provider}" "$out/bin/${cmd}" + install -D "${provider}" "$out/bin/${cmd}" ''; # more is unavailable in darwin -- cgit 1.4.1