about summary refs log tree commit diff
path: root/pkgs/tools/text/gnupatch/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/gnupatch/default.nix')
-rw-r--r--pkgs/tools/text/gnupatch/default.nix24
1 files changed, 10 insertions, 14 deletions
diff --git a/pkgs/tools/text/gnupatch/default.nix b/pkgs/tools/text/gnupatch/default.nix
index b4f702fdf3c2..3206e1023fb3 100644
--- a/pkgs/tools/text/gnupatch/default.nix
+++ b/pkgs/tools/text/gnupatch/default.nix
@@ -1,19 +1,15 @@
-{stdenv, fetchurl}: stdenv.mkDerivation ({
+{stdenv, fetchurl}:
+
+stdenv.mkDerivation {
   name = "gnupatch-2.5.4";
   src = fetchurl {
     url = http://nix.cs.uu.nl/dist/tarballs/patch-2.5.4.tar.gz;
     md5 = "ee5ae84d115f051d87fcaaef3b4ae782";
   };
-} // 
-  # !!! hack
-  (if stdenv.system != "i686-linux" then {
-    patches = [./setmode.patch];
-    configureFlags = "dummy"; # doesn't build on Darwin unless a platform is specified
-  } else {})
-  // 
-  # !!! hack
-  (if stdenv ? isDietLibC then {
-    # !!! pass this on all platforms
-    configureFlags = "dummy"; # doesn't build unless a platform is specified
-  } else {})
-)
+
+  # Hack around ancient configure script: doesn't build on many newer
+  # platforms unless a platform is specified.
+  configureFlags = "dummy";
+  
+  patches = if stdenv.isDarwin then [./setmode.patch] else [];
+}