Last active
April 16, 2018 10:01
-
-
Save jb55/fa72779326588a60480126d7d2582f5e 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
packageOverrides = super: { | |
haskellPackages = super.haskellPackages.override { | |
overrides = { | |
some-pkg = pkgs.haskell.lib.overrideCabal super.some-pkg (orig: { | |
src = fetchFromGithub {}; | |
}); | |
}; | |
}; |
You can also use extend
, which has less nesting:
packageOverrides = super: {
haskellPackages = super.haskellPackages.extend (_self: _super: {
some-pkg = pkgs.haskell.lib.overrideCabal super.some-pkg (orig: {
src = fetchFromGithub {};
})
);
};
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this should be