mktorrent: *Flags are lists

This commit is contained in:
Robin Gloster 2019-10-29 23:21:22 +01:00 committed by Jan Tojnar
parent 96fc34a8cd
commit 0f45b91746
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -11,13 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "17pdc5mandl739f8q26n5is8ga56s83aqcrwhlnnplbxwx2inidr";
};
makeFlags = "USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1"
+ stdenv.lib.optionalString stdenv.isi686 " USE_LARGE_FILES=1"
+ stdenv.lib.optionalString stdenv.isLinux "CFLAGS=-lgcc_s";
makeFlags = [ "USE_PTHREADS=1" "USE_OPENSSL=1" "USE_LONG_OPTIONS=1" ]
++ stdenv.lib.optional stdenv.isi686 "USE_LARGE_FILES=1"
++ stdenv.lib.optional stdenv.isLinux "CFLAGS=-lgcc_s";
preInstall = ''
installFlags=PREFIX=$out
'';
installFlags = [ "PREFIX=${placeholder "out"}" ];
buildInputs = [ openssl ];