udisks: extend "we know better than compiler" to more platforms (musl)

This commit is contained in:
Will Dietz 2018-03-24 15:01:04 -05:00
parent 9f7d5981b8
commit 990d29282f

View File

@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
--replace "/bin/sh" "${stdenv.shell}" \
--replace "/sbin/mdadm" "${mdadm}/bin/mdadm" \
--replace " sed " " ${gnused}/bin/sed "
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace udisks/udisksclient.c \
--replace 'defined( __GNUC_PREREQ)' 1 \
--replace '__GNUC_PREREQ(4,6)' 1
'';
nativeBuildInputs = [ pkgconfig intltool gobjectIntrospection ];