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
@ -19,14 +19,12 @@ let
|
|||||||
in runCommand "${cmd}-${version}" {
|
in runCommand "${cmd}-${version}" {
|
||||||
meta.platforms = map (n: { kernel.name = n; }) (pkgs.lib.attrNames providers);
|
meta.platforms = map (n: { kernel.name = n; }) (pkgs.lib.attrNames providers);
|
||||||
} ''
|
} ''
|
||||||
mkdir -p $out/bin
|
|
||||||
|
|
||||||
if ! [ -x "${provider}" ]; then
|
if ! [ -x "${provider}" ]; then
|
||||||
echo "Cannot find command ${cmd}"
|
echo "Cannot find command ${cmd}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -s "${provider}" "$out/bin/${cmd}"
|
install -D "${provider}" "$out/bin/${cmd}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# more is unavailable in darwin
|
# more is unavailable in darwin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user