From 01a00bfde2a07713403d6b085ef6aeb748cb1d43 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 19 Jan 2021 21:13:57 +0100 Subject: Add update script --- flake.nix | 2 +- kronika.json | 3 +++ update.sh | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 kronika.json create mode 100755 update.sh 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 -- cgit 1.4.1