Created
September 26, 2019 18:45
-
-
Save exarkun/60dbbf6186ae3da328ec1441999bec63 to your computer and use it in GitHub Desktop.
This file contains 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 | |
overlayA = self: super: { | |
python27 = super.python27.override { | |
packageOverrides = python-self: python-super: { | |
foo = python-super.twisted; | |
}; | |
}; | |
}; | |
packageOverridesB = python-self: python-super: { | |
bar = python-super.foo; | |
}; | |
overlayB = self: super: { | |
python27 = super.python27.override (old: { | |
packageOverrides = super.lib.composeExtensions old.packageOverrides packageOverridesB; | |
}); | |
}; | |
in | |
with import <nixpkgs> { | |
overlays = [ | |
overlayA | |
overlayB | |
]; | |
}; | |
assert python27.pkgs.bar == python27.pkgs.twisted; 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment