about summary refs log tree commit diff
path: root/pkgs/tools/filesystems
diff options
context:
space:
mode:
authorLuka Blaskovic <lblasc@tvbeat.com>2020-01-14 22:32:09 +0000
committerLuka Blaskovic <lblasc@tvbeat.com>2020-01-14 22:32:09 +0000
commitd9b726aef9450ee953d6ca069ff3c306774cc400 (patch)
tree69f9ddc4950224407aebb163a64e7a9c63aedce6 /pkgs/tools/filesystems
parentdcd9031572423d8537f4f63cfced3bc4d0a05fed (diff)
downloadnixlib-d9b726aef9450ee953d6ca069ff3c306774cc400.tar
nixlib-d9b726aef9450ee953d6ca069ff3c306774cc400.tar.gz
nixlib-d9b726aef9450ee953d6ca069ff3c306774cc400.tar.bz2
nixlib-d9b726aef9450ee953d6ca069ff3c306774cc400.tar.lz
nixlib-d9b726aef9450ee953d6ca069ff3c306774cc400.tar.xz
nixlib-d9b726aef9450ee953d6ca069ff3c306774cc400.tar.zst
nixlib-d9b726aef9450ee953d6ca069ff3c306774cc400.zip
jfsutils: fix build with glibc>=2.28
Diffstat (limited to 'pkgs/tools/filesystems')
-rw-r--r--pkgs/tools/filesystems/jfsutils/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/filesystems/jfsutils/default.nix b/pkgs/tools/filesystems/jfsutils/default.nix
index 92dfe00c9514..8b899da32c10 100644
--- a/pkgs/tools/filesystems/jfsutils/default.nix
+++ b/pkgs/tools/filesystems/jfsutils/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, libuuid, autoreconfHook }:
+{ stdenv, fetchurl, fetchpatch, libuuid, autoreconfHook }:
 
 stdenv.mkDerivation rec {
   name = "jfsutils-1.1.15";
@@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
     ./hardening-format.patch
     # required for cross-compilation
     ./ar-fix.patch
+    # fix for glibc>=2.28
+    (fetchpatch {
+      name   = "add_sysmacros.patch";
+      url    = "https://sources.debian.org/data/main/j/jfsutils/1.1.15-4/debian/patches/add_sysmacros.patch";
+      sha256 = "1qcwvxs4d0d24w5x98z59arqfx2n7f0d9xaqhjcg6w8n34vkhnyc";
+    })
   ];
 
   nativeBuildInputs = [ autoreconfHook ];