logos-delivery/nix/nimble.nix

16 lines
484 B
Nix
Raw Normal View History

2026-04-03 02:42:52 +02:00
# Fetches Nimble at the exact revision pinned in nimble.lock.
# Regenerate sha256 with:
# nix shell nixpkgs#nix-prefetch-git --command \
# nix-prefetch-git --url <url> --rev <vcsRevision> --fetch-submodules
{ pkgs }:
let
2026-04-03 02:42:52 +02:00
lock = builtins.fromJSON (builtins.readFile ../nimble.lock);
entry = lock.packages.nimble;
in
pkgs.fetchgit {
url = entry.url;
2026-04-03 15:56:34 +02:00
rev = "v${entry.version}";
sha256 = "18cwsjwcgjmnm42kr310hfbw06lym3vaj641i4pla6r8w22xqpqd";
2026-04-03 02:42:52 +02:00
fetchSubmodules = true;
}