setools: fix build
I assume it broke with python 3.8 -> 3.9. Updating would be another way, but that would require also updating some dependencies, and I'm not a selinux person so I chose a simple patch.
This commit is contained in:
parent
b8130cbd64
commit
bf051e91d6
|
@ -1,5 +1,6 @@
|
||||||
{ lib, fetchFromGitHub, python3
|
{ lib, fetchFromGitHub, python3
|
||||||
, libsepol, libselinux, checkpolicy
|
, libsepol, libselinux, checkpolicy
|
||||||
|
, fetchpatch
|
||||||
, withGraphics ? false
|
, withGraphics ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -17,6 +18,13 @@ buildPythonApplication rec {
|
||||||
sha256 = "0vr20bi8w147z5lclqz1l0j1b34137zg2r04pkafkgqqk7qbyjk6";
|
sha256 = "0vr20bi8w147z5lclqz1l0j1b34137zg2r04pkafkgqqk7qbyjk6";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch { # included in 4.4.0
|
||||||
|
url = "https://github.com/SELinuxProject/setools/commit/f1b4a5d375be05fbccedb258c940d771bff8e524.diff";
|
||||||
|
sha256 = "1r38s6i4i6bdr2zdp5wcg1yifpf3pd018c73a511mgynyg7d11xy";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cython ];
|
nativeBuildInputs = [ cython ];
|
||||||
buildInputs = [ libsepol ];
|
buildInputs = [ libsepol ];
|
||||||
propagatedBuildInputs = [ enum34 libselinux networkx ]
|
propagatedBuildInputs = [ enum34 libselinux networkx ]
|
||||||
|
|
Loading…
Reference in a new issue