summary refs log tree commit diff
path: root/pkgs/tools/misc/mc
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/mc')
-rw-r--r--pkgs/tools/misc/mc/default.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/pkgs/tools/misc/mc/default.nix b/pkgs/tools/misc/mc/default.nix
index 78f5259a889..8f03756a2d3 100644
--- a/pkgs/tools/misc/mc/default.nix
+++ b/pkgs/tools/misc/mc/default.nix
@@ -8,16 +8,13 @@ stdenv.mkDerivation rec {
   };
   buildInputs = [pkgconfig glib ncurses libX11 shebangfix perl zip];
   configureFlags = "--with-screen=ncurses";
-  # small hacks to support zip
-  postUnpack = "
-    sed  -i 's=/usr/bin/==g' `find -type f`
-  ";
-  postInstall = "
-    find \$out -iname \"*.pl\" | xargs shebangfix;
-  ";
+  makeFlags = "UNZIP=unzip";
+  postInstall = ''
+    find $out -iname "*.pl" | xargs shebangfix;
+  '';
   meta = {
-	  description = "File Manager and User Shell for the GNU Project";
-	  homepage = http://www.ibiblio.org/mc;
+    description = "File Manager and User Shell for the GNU Project";
+    homepage = http://www.ibiblio.org/mc;
   };
 }