1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

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.
This commit is contained in:
Will Dietz 2018-06-23 20:21:02 -05:00
parent 9c1edbddee
commit db7d403b63

View file

@ -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 = ''