treewide: Make configureFlags lists
This commit is contained in:
@@ -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)";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user