summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-20 10:25:41 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-20 10:25:41 +0100
commit6c66a2cfa1ff9fa0afc652b3e3453ea5085ff19a (patch)
treec8588da432ea7eb381b8196f413af57e94d9f104
parent04e3299f1115a4c2f17b2ed87ab2c54b24272b31 (diff)
downloadlow-puszcza-6c66a2cfa1ff9fa0afc652b3e3453ea5085ff19a.tar.gz
low-puszcza-6c66a2cfa1ff9fa0afc652b3e3453ea5085ff19a.zip
Add rev to json
-rw-r--r--flake.nix8
-rw-r--r--kronika.json1
-rwxr-xr-xupdate.sh2
3 files changed, 7 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index a9fe9c5..a160a3d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -7,11 +7,13 @@
     system = "x86_64-linux";
     pkgs = import nixpkgs { inherit system; overlays = [ nur.overlay ]; };
 
-    kronika = pkgs.fetchFromGitHub {
+    kronika = let
+      kronika_json = builtins.fromJSON (builtins.readFile ./kronika.json);
+    in pkgs.fetchFromGitHub {
       repo = "kronika";
       owner = "19pdh";
-      rev = "master";
-      sha256 = (builtins.fromJSON (builtins.readFile ./kronika.json)).sha256;
+      rev = kronika_json.rev;
+      sha256 = kronika_json.sha256;
     };
 
   in {
diff --git a/kronika.json b/kronika.json
index 0049537..ada6c7c 100644
--- a/kronika.json
+++ b/kronika.json
@@ -1,3 +1,4 @@
 {
+  "rev": "17e15660faa55323995d1a80aaf59dfb6eb4b59f",
   "sha256": "0w758d7nzd15isffhr5bkx26c3xh757z9ihg9w3prml2wggl04f2"
 }
diff --git a/update.sh b/update.sh
index fb46c87..2195e3e 100755
--- a/update.sh
+++ b/update.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-nix-prefetch-git "https://github.com/19pdh/kronika" | jq '{ sha256: .sha256 }' > kronika.json
+nix-prefetch-git "https://github.com/19pdh/kronika" | jq '{ rev: .rev, sha256: .sha256 }' > kronika.json