File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 22 description = "All Python versions packages in Nix." ;
33
44 inputs = {
5- nixpkgs . url = "github:NixOS/nixpkgs/nixos-24.05 " ;
5+ nixpkgs . url = "github:NixOS/nixpkgs/nixos-24.11 " ;
66 flake-compat . url = "github:edolstra/flake-compat" ;
77 flake-compat . flake = false ;
88 } ;
99
1010 nixConfig = {
11- substituters = "https://cache.nixos.org https://nixpkgs-python.cachix.org" ;
11+ extra- substituters = "https://nixpkgs-python.cachix.org" ;
1212 extra-trusted-public-keys = "nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU=" ;
1313 } ;
1414
161161 { condition = version : versionInBetween version "3.7" "3.0" ;
162162 override = pkg : pkg . overrideAttrs ( old : {
163163 prePatch = ''
164- substituteInPlace Lib/subprocess.py --replace '"/bin/sh"' "'/bin/sh'"
164+ substituteInPlace Lib/subprocess.py --replace-fail '"/bin/sh"' "'/bin/sh'"
165165 '' + old . prePatch ;
166166 } ) ;
167167 }
173173 '' + old . postInstall ;
174174 } ) ;
175175 }
176+ # The patch for CVE-2025-0938 is available for 3.9+
177+ # https://www.cve.org/CVERecord?id=CVE-2025-0938
178+ # https://github.com/python/cpython/pull/129418
179+ { condition = version : versionInBetween version "3.12" "2" ;
180+ override = filterOutPatch "CVE-2025-0938.patch" ;
181+ }
176182 ] ;
177183 callPackage = pkgs . newScope {
178184 inherit python ;
You can’t perform that action at this time.
0 commit comments