summary refs log tree commit diff
path: root/pkgs/os-specific/linux/libselinux
diff options
context:
space:
mode:
authoreburimu <43167692+eburimu@users.noreply.github.com>2018-12-09 16:32:38 +0200
committerJörg Thalheim <Mic92@users.noreply.github.com>2018-12-09 14:32:38 +0000
commite7d55483d1f414cb57346df5a6cdca759ef9d7f0 (patch)
tree96383551fe1e16abc0b2952df976b59ba5a98eb8 /pkgs/os-specific/linux/libselinux
parentee77dd61e3b0ee561ff6ca4654894f8bced65d28 (diff)
downloadnixpkgs-e7d55483d1f414cb57346df5a6cdca759ef9d7f0.tar
nixpkgs-e7d55483d1f414cb57346df5a6cdca759ef9d7f0.tar.gz
nixpkgs-e7d55483d1f414cb57346df5a6cdca759ef9d7f0.tar.bz2
nixpkgs-e7d55483d1f414cb57346df5a6cdca759ef9d7f0.tar.lz
nixpkgs-e7d55483d1f414cb57346df5a6cdca759ef9d7f0.tar.xz
nixpkgs-e7d55483d1f414cb57346df5a6cdca759ef9d7f0.tar.zst
nixpkgs-e7d55483d1f414cb57346df5a6cdca759ef9d7f0.zip
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
Diffstat (limited to 'pkgs/os-specific/linux/libselinux')
-rw-r--r--pkgs/os-specific/linux/libselinux/default.nix5
1 files changed, 2 insertions, 3 deletions
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]