udisks: extend "we know better than compiler" to more platforms (musl)
This commit is contained in:
parent
9f7d5981b8
commit
990d29282f
|
@ -27,7 +27,11 @@ 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 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue