This commit is contained in:
Matthew Bauer
2018-05-31 13:17:07 -04:00
parent e99322507e
commit ae6a4a913c
2 changed files with 5 additions and 6 deletions
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, pcre, pkgconfig, libsepol
, enablePython ? true, swig ? null, python ? null
, musl-fts
, fts
}:
assert enablePython -> swig != null && python != null;
@@ -18,9 +18,8 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libsepol pcre ]
++ optionals enablePython [ swig python ]
++ optional stdenv.hostPlatform.isMusl musl-fts;
buildInputs = [ libsepol pcre fts ]
++ optionals enablePython [ swig python ];
# drop fortify here since package uses it by default, leading to compile error:
# command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]