Skip to content

Instantly share code, notes, and snippets.

@garbas
Created February 19, 2017 17:28
Show Gist options
  • Save garbas/8676267db5a8914791dc659b4963e0c3 to your computer and use it in GitHub Desktop.
Save garbas/8676267db5a8914791dc659b4963e0c3 to your computer and use it in GitHub Desktop.
globin_override.nix
{ pkgs, python }:
self: super: {
"github3.py" = python.overrideDerivation super."github3.py" (old: {
propagatedNativeBuildInputs = old.propagatedNativeBuildInputs ++ [ self."uritemplate" ];
patchPhase = ''
cat setup.py
sed -i -e "s|uritemplate.py >= 0.2.0|uritemplate >= 0.2.0|" setup.py
'';
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment