From 8717de96a9d0441c28ce15063adb6f4821cdb3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 30 Jul 2018 10:04:15 +0100 Subject: [PATCH] nix-top: simplify installPhase --- pkgs/tools/package-management/nix-top/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/package-management/nix-top/default.nix b/pkgs/tools/package-management/nix-top/default.nix index 561c5a637772..a2cd0242839c 100644 --- a/pkgs/tools/package-management/nix-top/default.nix +++ b/pkgs/tools/package-management/nix-top/default.nix @@ -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 ''