Last active
November 20, 2019 17:16
-
-
Save FRidh/54df5f904a48137e956abe86c1489df7 to your computer and use it in GitHub Desktop.
Override Python interpreter to obtain older version (3.7.2). Just `nix-build -A python372` to build it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
overlay = self: super: { | |
python372 = let | |
py = super.python37.override { | |
self = py; | |
sourceVersion = { | |
major = "3"; | |
minor = "7"; | |
patch = "2"; | |
suffix = ""; | |
}; | |
sha256 = "1fzi9d2gibh0wzwidyckzbywsxcsbckgsl05ryxlifxia77fhgyq"; | |
}; | |
in py; | |
}; | |
in import (fetchTarball "channel:nixos-19.09") { | |
overlays = [ overlay ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment