diff options
-rw-r--r-- | flake.nix | 8 | ||||
-rw-r--r-- | kronika.json | 1 | ||||
-rwxr-xr-x | update.sh | 2 |
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 |