Skip to content

Instantly share code, notes, and snippets.

@o1lo01ol1o
Created March 24, 2021 14:00
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 o1lo01ol1o/6fccd0352bbdda69aea543ca5407e6b6 to your computer and use it in GitHub Desktop.
Save o1lo01ol1o/6fccd0352bbdda69aea543ca5407e6b6 to your computer and use it in GitHub Desktop.
overrides = let
composeManyExtensions =
pkgs.lib.foldr (x: y: pkgs.lib.composeExtensions x y)
(self: super: { });
pythonOverides = self: super: {
python = super.python.override {
packageOverrides = python-self: python-super: {
# tests fail on linux
pyopenssl =
python-super.pyopenssl.overridePythonAttrs
(old: { doCheck = false; });
};
};
};
in composeManyExtensions [
pythonOverides
(import foo).haskellOverrides
(self: super:
with pkgs.haskell.lib;
let foo=foo;
in {}; #etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment