Skip to content

Instantly share code, notes, and snippets.

@FRidh FRidh/default.nix
Last active Nov 20, 2019

Embed
What would you like to do?
Override Python interpreter to obtain older version (3.7.2). Just `nix-build -A python372` to build it.
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
You can’t perform that action at this time.