python2.pkgs.nixpart0: use correct libselinux bindings

Sine 56e557257d libselinux in pkgs defaults to Python 3 so let's use the one from python.pkgs to make sure it matches.
This commit is contained in:
Jan Tojnar 2020-01-18 11:16:59 +01:00
parent c438ce12a8
commit 07b8ab4ff7
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ buildPythonApplication rec {
'';
propagatedBuildInputs = [
pykickstart pyparted pyblock libselinux.py cryptsetup
pykickstart pyparted pyblock libselinux cryptsetup
] ++ stdenv.lib.optional useNixUdev systemd;
# tests are currently _heavily_ broken upstream

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, python, buildPythonApplication
, libselinux
# Propagated to blivet
, useNixUdev ? true
# Needed by NixOps
@ -10,10 +11,9 @@
let
blivet = import ./blivet.nix {
inherit stdenv fetchurl buildPythonApplication;
inherit pykickstart pyparted pyblock cryptsetup multipath_tools;
inherit pykickstart pyparted pyblock cryptsetup libselinux multipath_tools;
inherit useNixUdev;
inherit (pkgs) lsof utillinux systemd;
libselinux = pkgs.libselinux.override { enablePython = true; };
};
cryptsetup = import ./cryptsetup.nix {