From db7d403b638969cabaec219bc1e6bb6271097f30 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sat, 23 Jun 2018 20:21:02 -0500 Subject: 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. --- pkgs/os-specific/linux/dmraid/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/os-specific/linux/dmraid') 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 = '' -- cgit 1.4.1