Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created November 20, 2019 17:08
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/1100e98dadbaddab212efa17aa482157 to your computer and use it in GitHub Desktop.
Save matthew-piziak/1100e98dadbaddab212efa17aa482157 to your computer and use it in GitHub Desktop.
python372 = pkgs.python37.overrideAttrs (attrs: {
sourceVersion = attrs.sourceVersion // { patch = "2"; };
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