treewide: Make configureFlags lists

This commit is contained in:
John Ericson
2018-07-25 17:44:21 -04:00
parent 85a9913edd
commit db965063b3
164 changed files with 380 additions and 263 deletions

View File

@@ -24,7 +24,10 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
configureFlags = "--sysconfdir=/etc --localstatedir=/var";
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
];
installFlags = "sysconfdir=$(out)/etc localstatedir=$(TMPDIR)";

View File

@@ -41,11 +41,11 @@ stdenv.mkDerivation rec {
preConfigure = "./bootstrap.sh";
configureFlags = ""
+ stdenv.lib.optionalString withCrypto "--with-crypto "
+ stdenv.lib.optionalString enableMagic "--enable-magic "
+ stdenv.lib.optionalString enableCuckoo "--enable-cuckoo "
;
configureFlags = [
(stdenv.lib.withFeature withCrypto "crypto")
(stdenv.lib.enableFeature enableMagic "magic")
(stdenv.lib.enableFeature enableCuckoo "cuckoo")
];
meta = with stdenv.lib; {
description = "The pattern matching swiss knife for malware researchers";