gnutls: try to fix build on Darwin, after update

This commit is contained in:
Vladimír Čunát 2017-04-11 03:38:39 +02:00
parent 6d1374238f
commit d6454e6a15
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,4 +1,4 @@
{ callPackage, fetchurl, libunistring, ... } @ args: { callPackage, stdenv, fetchurl, libunistring, darwin, ... } @ args:
callPackage ./generic.nix (args // rec { callPackage ./generic.nix (args // rec {
version = "3.5.11"; version = "3.5.11";
@ -15,4 +15,6 @@ callPackage ./generic.nix (args // rec {
sed '2iexit 77' -i tests/pkgconfig.sh sed '2iexit 77' -i tests/pkgconfig.sh
sed '/^void doit(void)/,$s/{/{ exit(77);/; t' -i tests/trust-store.c sed '/^void doit(void)/,$s/{/{ exit(77);/; t' -i tests/trust-store.c
''; '';
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.Security;
}) })