From e7d55483d1f414cb57346df5a6cdca759ef9d7f0 Mon Sep 17 00:00:00 2001 From: eburimu <43167692+eburimu@users.noreply.github.com> Date: Sun, 9 Dec 2018 16:32:38 +0200 Subject: 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 --- pkgs/os-specific/linux/libselinux/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pkgs/os-specific/linux/libselinux') diff --git a/pkgs/os-specific/linux/libselinux/default.nix b/pkgs/os-specific/linux/libselinux/default.nix index 915aee6fd86..51e1a322094 100644 --- a/pkgs/os-specific/linux/libselinux/default.nix +++ b/pkgs/os-specific/linux/libselinux/default.nix @@ -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] -- cgit 1.4.1