summary refs log tree commit diff
path: root/flake.nix
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 /flake.nix
parent04e3299f1115a4c2f17b2ed87ab2c54b24272b31 (diff)
downloadlow-puszcza-6c66a2cfa1ff9fa0afc652b3e3453ea5085ff19a.tar.gz
low-puszcza-6c66a2cfa1ff9fa0afc652b3e3453ea5085ff19a.zip
Add rev to json
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
1 files changed, 5 insertions, 3 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 {