From f40363797fca14c2fc14c64fbffd53aabc5a12e8 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 21 Oct 2024 23:26:21 +0200 Subject: [PATCH] Damn python --- overlays/default.nix | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/overlays/default.nix b/overlays/default.nix index 46f3bc2..7de9b12 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,4 +1,4 @@ -_final: prev: { +final: prev: { backscrub = prev.pkgs.callPackage ../pkgs/backscrub { inherit (prev.pkgs) gcc @@ -24,4 +24,34 @@ _final: prev: { enableCuda = false; # peakperf needs cuda-samples, which is not available in current CUDA. CUDA 11 is broken due to CVEs in freeimage }; factorio = prev.factorio.override { versionsJson = ./factorio.json; }; + + python312 = prev.python312.override { + packageOverrides = _pyfinal: pyprev: { + wxpython = pyprev.wxpython.overrideAttrs (_old: { + version = "4.2.2"; + + src = final.fetchPypi { + pname = "wxPython"; + version = "4.2.2"; + hash = "sha256-XbywZQ9n/cLFlleVolX/qj17CfsUmqjaLQ2apE444ro="; + }; + }); + }; + }; + python312Packages = final.python312.pkgs; + + python311 = prev.python311.override { + packageOverrides = _pyfinal: pyprev: { + wxpython = pyprev.wxpython.overrideAttrs (_old: { + version = "4.2.2"; + + src = final.fetchPypi { + pname = "wxPython"; + version = "4.2.2"; + hash = "sha256-XbywZQ9n/cLFlleVolX/qj17CfsUmqjaLQ2apE444ro="; + }; + }); + }; + }; + python311Packages = final.python311.pkgs; }