fix eval
This commit is contained in:
parent
e99322507e
commit
ae6a4a913c
@ -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]
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user