Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created November 18, 2019 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthew-piziak/1cc01a13d54ae7003990bc647e9ad8a6 to your computer and use it in GitHub Desktop.
Save matthew-piziak/1cc01a13d54ae7003990bc647e9ad8a6 to your computer and use it in GitHub Desktop.
python372 = pkgs.python37.override
(params: { sourceVersion = params.sourceVersion // { patch = "2"; }; }).overrideAttrs (attrs: {
version = with attrs.sourceVersion; "${major}.${minor}.${patch}${suffix}";
src = pkgs.fetchurl {
url = with attrs.sourceVersion;
"https://www.python.org/ftp/python/${major}.${minor}.${patch}/Python-${version}.tar.xz";
sha256 = "0242gihnw3wfskl4fydp2xanpl8k5q7fj4dp7dbbqf46a4iwdzpa";
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment