libselinux: fix cross compilation (#51201)

libselinux needs native python to compute the installation prefix.
Swig generates the c code for the extension and needs python.h at compile,
so we put python into buildInputs
This commit is contained in:
eburimu 2018-12-09 16:32:38 +02:00 committed by Jörg Thalheim
parent ee77dd61e3
commit e7d55483d1

View File

@ -19,9 +19,8 @@ stdenv.mkDerivation rec {
sha256 = "0mwcq78v6ngbq06xmb9dvilpg0jnl2vs9fgrpakhmmiskdvc1znh";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libsepol pcre fts ]
++ optionals enablePython [ swig python ];
nativeBuildInputs = [ pkgconfig ] ++ optionals enablePython [ swig python ];
buildInputs = [ libsepol pcre fts ] ++ optionals enablePython [ python ];
# drop fortify here since package uses it by default, leading to compile error:
# command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]