overlay: Add temporary hack until Python on nixos-unstable is unfucked
This commit is contained in:
parent
f8e68cb04a
commit
43e468cefb
1 changed files with 35 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
_final: prev: {
|
||||
final: prev: {
|
||||
backscrub = prev.pkgs.callPackage ../pkgs/backscrub {
|
||||
inherit (prev.pkgs)
|
||||
gcc
|
||||
|
@ -19,4 +19,38 @@ _final: prev: {
|
|||
);
|
||||
|
||||
git-repo-go = prev.pkgs.callPackage ../pkgs/git-repo-go { };
|
||||
|
||||
# Temporary until nixos-unstable is fixed for Python 3.12
|
||||
python312 = prev.python312.override {
|
||||
packageOverrides = _finalPkgs: prevPkgs: {
|
||||
nose = prevPkgs.nose.overrideAttrs {
|
||||
patches = [
|
||||
(final.fetchpatch2 {
|
||||
url = "https://github.com/NixOS/nixpkgs/raw/599e471d78801f95ccd2c424a37e76ce177e50b9/pkgs/development/python-modules/nose/0001-nose-python-3.12-fixes.patch";
|
||||
hash = "sha256-aePOvO5+TJL4JzXywc7rEiYRzfdObSI9fg9Cfrp+e2o=";
|
||||
})
|
||||
];
|
||||
};
|
||||
wxpython = prevPkgs.wxpython.overrideAttrs {
|
||||
disabled = false;
|
||||
postPatch =
|
||||
let
|
||||
waf_2_0_25 = prev.fetchurl {
|
||||
url = "https://waf.io/waf-2.0.25";
|
||||
hash = "sha256-IRmc0iDM9gQ0Ez4f0quMjlIXw3mRmcgnIlQ5cNyOONU=";
|
||||
};
|
||||
in
|
||||
''
|
||||
cp ${waf_2_0_25} bin/waf-2.0.25
|
||||
chmod +x bin/waf-2.0.25
|
||||
substituteInPlace build.py \
|
||||
--replace-fail "wafCurrentVersion = '2.0.24'" "wafCurrentVersion = '2.0.25'" \
|
||||
--replace-fail "wafMD5 = '698f382cca34a08323670f34830325c4'" "wafMD5 = 'a4b1c34a03d594e5744f9e42f80d969d'" \
|
||||
--replace-fail "distutils.dep_util" "setuptools.modified"
|
||||
'';
|
||||
};
|
||||
python-hglib = prevPkgs.python-hglib.overrideAttrs { dontUseSetuptoolsCheck = "1"; };
|
||||
};
|
||||
};
|
||||
python312Packages = final.python312.pkgs;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue