summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
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 {