logos-delivery/nix/nimble.nix
2026-04-03 02:42:52 +02:00

16 lines
482 B
Nix

# 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
lock = builtins.fromJSON (builtins.readFile ../nimble.lock);
entry = lock.packages.nimble;
in
pkgs.fetchgit {
url = entry.url;
rev = entry.vcsRevision;
sha256 = "1q3mpv0b5a0hhvdfn2c1f03hjbdwfam894vym14i3dm23qin2i5z";
fetchSubmodules = true;
}