git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitdb7d403b638969cabaec219bc1e6bb6271097f30 authorWill Dietz <w@wdtz.org> dateSat 23 Jun 2018, 20:21 (8 years ago) parent9c1edbd
1 file changed+6
pkgs/os-specific/linux/dmraid/default.nix+6
pkgs/os-specific/linux/dmraid/default.nix+6
@@ -16,6 +16,12 @@ stdenv.mkDerivation rec {
1616 stripLen = 2;
1717 extraPrefix = "1.0.0.rc16/";
1818 })
19+ (fetchpatch {
20+ url = "https://raw.githubusercontent.com/void-linux/void-packages/fceed4b8e96b3c1da07babf6f67b6ed1588a28b2/srcpkgs/dmraid/patches/007-fix-loff_t-musl.patch";
21+ sha256 = "0msnq39qnzg3b1pdksnz1dgqwa3ak03g41pqh0lw3h7w5rjc016k";
22+ stripLen = 2;
23+ extraPrefix = "1.0.0.rc16/";
24+ })
1925 ];
2026
2127 postPatch = ''