From d94d3b39b997a7f83ab5757f919be8abe1e891ff Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 25 Jun 2018 09:25:25 -0500 Subject: [PATCH] udisks2: revive musl patching I believe we discussed this and believed this wasn't necessary, but without it the build breaks w/musl so re-add it. --- pkgs/os-specific/linux/udisks/2-default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/os-specific/linux/udisks/2-default.nix b/pkgs/os-specific/linux/udisks/2-default.nix index 6bb12c2c792a..0c0aa84a6bd3 100644 --- a/pkgs/os-specific/linux/udisks/2-default.nix +++ b/pkgs/os-specific/linux/udisks/2-default.nix @@ -42,6 +42,12 @@ in stdenv.mkDerivation rec { gtk-doc libxslt docbook_xml_dtd_412 docbook_xml_dtd_43 docbook_xsl ]; + postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl '' + substituteInPlace udisks/udisksclient.c \ + --replace 'defined( __GNUC_PREREQ)' 1 \ + --replace '__GNUC_PREREQ(4,6)' 1 + ''; + buildInputs = [ expat libgudev libblockdev acl systemd glib libatasmart polkit ];