]> git.scottworley.com Git - auto-upgrade-with-pinch/commitdiff
pinch
authorScott Worley <scottworley@scottworley.com>
Sat, 11 Apr 2020 00:32:56 +0000 (17:32 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 18 May 2020 18:35:06 +0000 (11:35 -0700)
overlays/pinch.nix [new file with mode: 0644]

diff --git a/overlays/pinch.nix b/overlays/pinch.nix
new file mode 100644 (file)
index 0000000..d85be2d
--- /dev/null
@@ -0,0 +1,9 @@
+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 "$@"
+  '';
+}