diff options
author | Vladimír Čunát <v@cunat.cz> | 2021-07-16 16:57:13 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2021-07-16 16:58:48 +0200 |
commit | bf051e91d6018e3620e368d4401470694bebd831 (patch) | |
tree | b273ba0d5a62be16c5964e0086c3293ff7c9a1e5 /pkgs/os-specific | |
parent | b8130cbd64a3c1107a4bc9a5499564a13a644885 (diff) | |
download | nixpkgs-bf051e91d6018e3620e368d4401470694bebd831.tar nixpkgs-bf051e91d6018e3620e368d4401470694bebd831.tar.gz nixpkgs-bf051e91d6018e3620e368d4401470694bebd831.tar.bz2 nixpkgs-bf051e91d6018e3620e368d4401470694bebd831.tar.lz nixpkgs-bf051e91d6018e3620e368d4401470694bebd831.tar.xz nixpkgs-bf051e91d6018e3620e368d4401470694bebd831.tar.zst nixpkgs-bf051e91d6018e3620e368d4401470694bebd831.zip |
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.
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/setools/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/setools/default.nix b/pkgs/os-specific/linux/setools/default.nix index 0da84ab1cef..842a525353d 100644 --- a/pkgs/os-specific/linux/setools/default.nix +++ b/pkgs/os-specific/linux/setools/default.nix @@ -1,5 +1,6 @@ { lib, fetchFromGitHub, python3 , libsepol, libselinux, checkpolicy +, fetchpatch , withGraphics ? false }: @@ -17,6 +18,13 @@ buildPythonApplication rec { sha256 = "0vr20bi8w147z5lclqz1l0j1b34137zg2r04pkafkgqqk7qbyjk6"; }; + patches = [ + (fetchpatch { # included in 4.4.0 + url = "https://github.com/SELinuxProject/setools/commit/f1b4a5d375be05fbccedb258c940d771bff8e524.diff"; + sha256 = "1r38s6i4i6bdr2zdp5wcg1yifpf3pd018c73a511mgynyg7d11xy"; + }) + ]; + nativeBuildInputs = [ cython ]; buildInputs = [ libsepol ]; propagatedBuildInputs = [ enum34 libselinux networkx ] |