diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-01-19 21:13:57 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-01-19 21:13:57 +0100 |
commit | 01a00bfde2a07713403d6b085ef6aeb748cb1d43 (patch) | |
tree | 78bdcf3747e2646be2be7dcc80e7a0b36319842b | |
parent | 882fb8b5812f66de44394d1051a8a2b7a33d6520 (diff) | |
download | low-puszcza-01a00bfde2a07713403d6b085ef6aeb748cb1d43.tar.gz low-puszcza-01a00bfde2a07713403d6b085ef6aeb748cb1d43.zip |
Add update script
-rw-r--r-- | flake.nix | 2 | ||||
-rw-r--r-- | kronika.json | 3 | ||||
-rwxr-xr-x | update.sh | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix index 47cfdae..a9fe9c5 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ repo = "kronika"; owner = "19pdh"; rev = "master"; - sha256 = "1pafahvq8xhpba2hgpipkbnhjr3j9zchnxfq4pnxqvidwz5rqr51"; + sha256 = (builtins.fromJSON (builtins.readFile ./kronika.json)).sha256; }; in { diff --git a/kronika.json b/kronika.json new file mode 100644 index 0000000..4af7992 --- /dev/null +++ b/kronika.json @@ -0,0 +1,3 @@ +{ + "sha256": "0g7kvxnrn4hgx14rn7p53xhzqdfs3jzf9000lrzr46zzamdlljrq" +} diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..fb46c87 --- /dev/null +++ b/update.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +nix-prefetch-git "https://github.com/19pdh/kronika" | jq '{ sha256: .sha256 }' > kronika.json |