Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created September 26, 2019 19:06
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 exarkun/3e6bbd82359a6c7f869a8f482192148b to your computer and use it in GitHub Desktop.
Save exarkun/3e6bbd82359a6c7f869a8f482192148b to your computer and use it in GitHub Desktop.
let
pythonTwistedOverride = python-self: python-super: {
twisted = python-super.callPackage ../pkgs/twisted.nix { inherit (python-super) twisted; };
};
in
self: super: {
privatestorage = self.python27.buildEnv.override
{ extraLibs =
[ self.python27Packages.tahoe-lafs
self.python27Packages.zkapauthorizer
];
# Twisted's dropin.cache always collides between different
# plugin-providing packages.
# ignoreCollisions = true;
};
python27 = super.python27.override (old: {
packageOverrides = super.lib.composeExtensions old.packageOverrides pythonTwistedOverride;
});
}
{ twisted }:
twisted.overrideAttrs (old: {
version = old.version + "-0";
patches = (if old ? "patches" then old.patches else []) ++ [ ./twisted.patch ];
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment