From f76e50b0813d7e198267e519998567844d30bb28 Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Wed, 8 Apr 2026 10:12:35 +0200 Subject: [PATCH] nimble.nix fetch it without submodule --- nix/nimble.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nix/nimble.nix b/nix/nimble.nix index 242173cd4..0e2bcf8ac 100644 --- a/nix/nimble.nix +++ b/nix/nimble.nix @@ -1,7 +1,8 @@ # Fetches Nimble at the exact revision declared in waku.nimble. -# Regenerate sha256 with: -# nix shell nixpkgs#nix-prefetch-git --command \ -# nix-prefetch-git --url https://github.com/nim-lang/nimble --rev v --fetch-submodules +# Regenerate hash with: +# nix store prefetch-file --hash-type sha256 --unpack \ +# https://github.com/nim-lang/nimble/archive/v.tar.gz +# or set hash = "" and let Nix report the correct value. { pkgs }: let lines = pkgs.lib.splitString "\n" (builtins.readFile ../waku.nimble); @@ -10,8 +11,7 @@ let version = builtins.head (builtins.match ".*\"([0-9]+\\.[0-9]+\\.[0-9]+)\".*" versionLine); in pkgs.fetchgit { - url = "https://github.com/nim-lang/nimble"; - rev = "v${version}"; - sha256 = "18cwsjwcgjmnm42kr310hfbw06lym3vaj641i4pla6r8w22xqpqd"; - fetchSubmodules = true; + url = "https://github.com/nim-lang/nimble"; + rev = "v${version}"; + hash = "sha256-wgzFhModFkwB8st8F5vSkua7dITGGC2cjoDvgkRVZMs="; }