Skip to content

Commit

Permalink
Merge pull request #47 from ktosiek/python-3.4
Browse files Browse the repository at this point in the history
Fix patching Lib/subprocess.py for 3.0 - 3.6 on NixOS 24.05
  • Loading branch information
domenkozar authored Jul 14, 2024
2 parents 34dd6c8 + af8fea9 commit b927266
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@
else pkgs.stdenv;
});
}
# compatibility with substitutions done by the nixpkgs derivation
{ condition = version: versionInBetween version "3.7" "3.0";
override = pkg: pkg.overrideAttrs (old: {
prePatch = ''
substituteInPlace Lib/subprocess.py --replace '"/bin/sh"' "'/bin/sh'"
'' + old.prePatch;
});
}
# fill in the missing pc file
{ condition = version: versionInBetween version "3.5.2" "3.0" && pkgs.stdenv.isLinux;
override = pkg: pkg.overrideAttrs (old: {
Expand Down

0 comments on commit b927266

Please sign in to comment.