aescrypt: fix darwin build

This commit is contained in:
Ben Creasy 2018-05-26 10:49:13 -07:00
parent ce9c8beeca
commit 03872eb107

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;
};
}