Skip to content

Commit

Permalink
python311Packages.libselinux: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Dec 8, 2024
1 parent 4bfc771 commit 5466755
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/by-name/li/libselinux/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
pcre2,
pkg-config,
libsepol,
enablePython ? !stdenv.hostPlatform.isStatic,
enablePython ? false,
swig ? null,
python3 ? null,
python3Packages,
python3Packages ? null,
fts,
}:

Expand Down Expand Up @@ -45,7 +45,7 @@ stdenv.mkDerivation (
# normalizing the patch.
(fetchurl {
url = "https://lore.kernel.org/selinux/[email protected]/raw";
sha256 = "16a2s2ji9049892i15yyqgp4r20hi1hij4c1s4s8law9jsx65b3n";
hash = "sha256-dqxiupaJK4o00YERGWGIEIhM7sPelxBFQomAFKXQQpk=";
postFetch = ''
mv "$out" $TMPDIR/patch
${buildPackages.patchutils_0_3_3}/bin/filterdiff \
Expand All @@ -55,7 +55,7 @@ stdenv.mkDerivation (

(fetchurl {
url = "https://git.yoctoproject.org/meta-selinux/plain/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch?id=62b9c816a5000dc01b28e78213bde26b58cbca9d";
sha256 = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU=";
hash = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU=";
})
];

Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7310,6 +7310,7 @@ self: super: with self; {
p.override {
enablePython = true;
python3 = python;
python3Packages = pythonPackages;
})
(p: p.py)
];
Expand Down

0 comments on commit 5466755

Please sign in to comment.