nix-top: simplify installPhase

This commit is contained in:
Jörg Thalheim 2018-07-30 10:04:15 +01:00
parent e1dc63b41b
commit 8717de96a9

View File

@ -33,11 +33,10 @@ stdenv.mkDerivation rec {
buildInputs = [
ruby
];
installPhase = ''
mkdir -p $out/bin $out/libexec/nix-top
cp ./nix-top $out/bin/nix-top
chmod +x $out/bin/nix-top
mkdir -p $out/libexec/nix-top
install -D -m755 ./nix-top $out/bin/nix-top
wrapProgram $out/bin/nix-top \
--prefix PATH : "$out/libexec/nix-top:${additionalPath}"
'' + stdenv.lib.optionalString stdenv.isDarwin ''