Merge pull request #41111 from jcrben/aescrypt-on-darwin

aescrypt: fix darwin build
This commit is contained in:
Daiderd Jordan 2018-05-27 00:03:40 +02:00 committed by GitHub
commit 55f03e3913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "1a1rs7xmbxh355qg3v02rln3gshvy3j6wkx4g9ir72l22mp6zkc7";
};
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
preBuild = ''
substituteInPlace src/Makefile --replace "CC=gcc" "CC?=gcc"
cd src
'';
@ -27,6 +30,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2;
maintainers = with maintainers; [ lovek323 qknight ];
platforms = stdenv.lib.platforms.all;
hydraPlatforms = stdenv.lib.platforms.linux;
hydraPlatforms = with platforms; unix;
};
}