From 0dc8b49db1093350717738918fb1f882939dca5a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 20 Jun 2026 08:39:12 +0100 Subject: [PATCH] cvise: fix tarball hash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change the re-fetch of original source fails as: ``` $ nix build --no-link -f. cvise.src --rebuild error: hash mismatch in fixed-output derivation '/nix/store/rd0vycm33x3hfwsa6iljj1229f9035am-source.drv': specified: sha256-UaWOHjgTiSVvpKKw6VFAeRAYkYp4y0Dnamzr7yhH0vQ= got: sha256-ObnhFe7hAKUoUxNJ+9jo0Q4AE6jQqDgI1Ta/jsumqpI= ``` This happens because the `github` tarball generation is dependent on abbreviated hash length of `cvise` source: ``` $ diffoscope before/ after/ --- before/ +++ after/ │ --- before/CMakeLists.txt ├── +++ after/CMakeLists.txt │ @@ -84,15 +84,15 @@ │ │ # Determine the short git hash for the source tree. │ # │ ## METHOD 1: The source tree is the result of `git archive'. │ # `git archive' inserts the abbreviated hash of the archive's commit into this │ # file. (See the `.gitattributes' file.) │ # │ -set(GIT_HASH "2d0889e7") │ +set(GIT_HASH "2d0889e73") ``` Intially noticed the hash instability when enabled `config.fetchedSourceNameDefault` locally. Ideally the upstream tarball should be fixed by https://github.com/marxin/cvise/pull/506. Meanwhile let's update the hash. --- pkgs/development/tools/misc/cvise/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/cvise/default.nix b/pkgs/development/tools/misc/cvise/default.nix index 0dc731809d4f..322503183da7 100644 --- a/pkgs/development/tools/misc/cvise/default.nix +++ b/pkgs/development/tools/misc/cvise/default.nix @@ -21,7 +21,7 @@ python3Packages.buildPythonApplication rec { owner = "marxin"; repo = "cvise"; tag = "v${version}"; - hash = "sha256-UaWOHjgTiSVvpKKw6VFAeRAYkYp4y0Dnamzr7yhH0vQ="; + hash = "sha256-ObnhFe7hAKUoUxNJ+9jo0Q4AE6jQqDgI1Ta/jsumqpI="; }; patches = [