X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/blobdiff_plain/4ed6fe195d49b7e9cfe087cbce799db8998d1e60..318cb8e22fa7dcdf691149b520b5d24428ee3cc9:/overlays/pinch.nix diff --git a/overlays/pinch.nix b/overlays/pinch.nix index 1b2c65f..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.1"; - sha256 = "0ilbhvr0d83kfwkm7ak64gik44gi2axfnp9rzsa7g5cwz9qaxdbv"; - }}/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 "$@" + ''; }