This commit is contained in:
Matthew Bauer 2018-05-31 12:44:17 -04:00
parent e99322507e
commit ae6a4a913c
2 changed files with 5 additions and 6 deletions

View File

@ -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]

View File

@ -50,12 +50,12 @@ let
linux = pkgs.utillinux;
};
getconf = {
linux = if hostPlatform.isGNU then lib.getBin pkgs.glibc
linux = if hostPlatform.libc == "glibc" then lib.getBin pkgs.glibc
else pkgs.netbsd.getconf;
darwin = pkgs.darwin.system_cmds;
};
getent = {
linux = if hostPlatform.isGNU then lib.getBin pkgs.glibc
linux = if hostPlatform.libc == "glibc" then lib.getBin pkgs.glibc
else pkgs.netbsd.getent;
darwin = pkgs.netbsd.getent;
};