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.
This commit is contained in:
parent
694684ff80
commit
4ca4c886e4
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue