summary refs log tree commit diff
path: root/pkgs/os-specific/linux/dmraid
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-06-23 20:21:02 -0500
committerWill Dietz <w@wdtz.org>2018-06-23 20:42:14 -0500
commitdb7d403b638969cabaec219bc1e6bb6271097f30 (patch)
treee1ef3784856a0ce903fe3da9bcca9e6c9f267e62 /pkgs/os-specific/linux/dmraid
parent9c1edbddeefaa73513da566f02a0913f36d5bf22 (diff)
downloadnixpkgs-db7d403b638969cabaec219bc1e6bb6271097f30.tar
nixpkgs-db7d403b638969cabaec219bc1e6bb6271097f30.tar.gz
nixpkgs-db7d403b638969cabaec219bc1e6bb6271097f30.tar.bz2
nixpkgs-db7d403b638969cabaec219bc1e6bb6271097f30.tar.lz
nixpkgs-db7d403b638969cabaec219bc1e6bb6271097f30.tar.xz
nixpkgs-db7d403b638969cabaec219bc1e6bb6271097f30.tar.zst
nixpkgs-db7d403b638969cabaec219bc1e6bb6271097f30.zip
dmraid: patch to fix users of dmraid
I hoped that setting -D_GNU_SOURCE in the build would avoid
the need for this patch -- but that only fixes the build itself,
this patch adds the define so headers work elsewhere.

Particularly, this fixes libblockdev w/musl -- before this change
it fails to "detect" headers for dmraid.h since it doesn't compile.
Diffstat (limited to 'pkgs/os-specific/linux/dmraid')
-rw-r--r--pkgs/os-specific/linux/dmraid/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/dmraid/default.nix b/pkgs/os-specific/linux/dmraid/default.nix
index 73ae6801bc2..c2e950b4ba4 100644
--- a/pkgs/os-specific/linux/dmraid/default.nix
+++ b/pkgs/os-specific/linux/dmraid/default.nix
@@ -16,6 +16,12 @@ stdenv.mkDerivation rec {
         stripLen = 2;
         extraPrefix = "1.0.0.rc16/";
       })
+      (fetchpatch {
+        url = "https://raw.githubusercontent.com/void-linux/void-packages/fceed4b8e96b3c1da07babf6f67b6ed1588a28b2/srcpkgs/dmraid/patches/007-fix-loff_t-musl.patch";
+        sha256 = "0msnq39qnzg3b1pdksnz1dgqwa3ak03g41pqh0lw3h7w5rjc016k";
+        stripLen = 2;
+        extraPrefix = "1.0.0.rc16/";
+      })
     ];
 
   postPatch = ''