X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/blobdiff_plain/2be80b46d63fcc3250f9122ab987da584090e97d..10f5329ab87c69585e2a9a821e524a6cc7218700:/overlays/pinch.nix?ds=sidebyside diff --git a/overlays/pinch.nix b/overlays/pinch.nix index d85be2d..ddaed6f 100644 --- a/overlays/pinch.nix +++ b/overlays/pinch.nix @@ -1,9 +1,14 @@ self: super: { - pinch = super.writeShellScriptBin "pinch" '' - exec ${self.python3}/bin/python3 ${super.fetchgit { - url = "https://scottworley.com/pinch.git"; - rev = "1.0"; - sha256 = "0dlyx1vadppalpc1kr777k8ij3x04lz2m938y205xi7k5ab6j6fr"; - }}/pinch.py "$@" - ''; + pinch = if builtins.hasAttr "pinch" super then + super.pinch + else + super.writeShellScriptBin "pinch" '' + exec ${self.python3}/bin/python3 ${ + super.fetchgit { + url = "https://scottworley.com/pinch.git"; + rev = "1.2"; + sha256 = "0s0rk1m0irsdj0xjnix9y1825pjv7lhbmnn73jgjbj1hi6wqwpfh"; + } + }/pinch.py "$@" + ''; }