summary refs log tree commit diff
path: root/pkgs/development/tools/misc/patchelf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/misc/patchelf/default.nix')
-rw-r--r--pkgs/development/tools/misc/patchelf/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/patchelf/default.nix b/pkgs/development/tools/misc/patchelf/default.nix
index d51af9ca332..855ae40fc5f 100644
--- a/pkgs/development/tools/misc/patchelf/default.nix
+++ b/pkgs/development/tools/misc/patchelf/default.nix
@@ -15,6 +15,16 @@ stdenv.mkDerivation rec {
   };
 
   strictDeps = true;
+
+  patches =
+    # This patch fixes a MIPS-specific bug in patchelf; we want Hydra
+    # to generate a bootstrap-files tarball for MIPS that includes
+    # this fix.  The patches below can be dropped on the next version bump.
+    lib.optionals stdenv.targetPlatform.isMips [
+      # https://github.com/NixOS/patchelf/pull/380
+      ./patches/380.patch
+    ];
+
   setupHook = [ ./setup-hook.sh ];
 
   enableParallelBuilding = true;