From b94c2d8677ba7fee4dde51a6a6eb937ed20a5d6b Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Sat, 26 Jul 2025 19:51:15 +0200 Subject: [PATCH] step-ca: make source reproducible Signed-off-by: Paul Meyer --- pkgs/by-name/st/step-ca/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/st/step-ca/package.nix b/pkgs/by-name/st/step-ca/package.nix index 72c2587bc21b..1498fe059281 100644 --- a/pkgs/by-name/st/step-ca/package.nix +++ b/pkgs/by-name/st/step-ca/package.nix @@ -18,7 +18,12 @@ buildGoModule rec { owner = "smallstep"; repo = "certificates"; tag = "v${version}"; - hash = "sha256-pN+zvLZuBfw40KCegh7J5RzDOXgbLHNhhFJRFSKhlYc="; + # Source uses git export-subst and isn't reproducible when fetching as git archive, + # see https://github.com/smallstep/certificates/blob/6a1250131284dce4aa66c0e0e3f7a3202dd56ad0/.gitattributes. + # Use forceFetchGit to fetch the source as git repo, as fetchGit isn't effected, + # see https://github.com/NixOS/nixpkgs/issues/84312#issuecomment-2475948960. + forceFetchGit = true; + hash = "sha256-ZIpsSNdQVkelo5b3H03N8qToHU7z+lalAE7Ur6m2YwY="; }; vendorHash = "sha256-gGPrrl5J8UrjUpof2DaSs1fAQsMSsyAMlC67h5V75+k=";