diff --git a/pkgs/by-name/nc/ncps/package.nix b/pkgs/by-name/nc/ncps/package.nix index 9991c7c58dcb..0c374caa4025 100644 --- a/pkgs/by-name/nc/ncps/package.nix +++ b/pkgs/by-name/nc/ncps/package.nix @@ -3,6 +3,7 @@ curl, dbmate, fetchFromGitHub, + go, jq, lib, makeWrapper, @@ -29,6 +30,15 @@ buildGoModule (finalAttrs: { hash = "sha256-jZxh4y1bKHbSSGphN3TSR9TiQqfkNhdr8GQekldC1FM="; }; + # XXX: ncps is built with Go 1.25.6 that is available in release-25.11 but + # master is currently still using 1.25.5 (update waiting in the + # staging/staging-next branches.) This is a workaround for this issue and + # will automatically becomes no-op once Go is updated. + preBuild = lib.optionalString (go.version == "1.25.5") '' + sed -e 's:go 1.25.6:go 1.25.5:g' -i go.mod + sed -e 's:go 1.25.6:go 1.25.5:g' -i nix/dbmate-wrapper/src/go.mod + ''; + vendorHash = "sha256-QZikr0kE/kvnI4RG02lxVpG4teTg3Uo68st9xLlbfm0="; ldflags = [ @@ -99,6 +109,14 @@ buildGoModule (finalAttrs: { src = "${finalAttrs.src}/nix/dbmate-wrapper/src"; + # XXX: ncps is built with Go 1.25.6 that is available in release-25.11 but + # master is currently still using 1.25.5 (update waiting in the + # staging/staging-next branches.) This is a workaround for this issue and + # will automatically becomes no-op once Go is updated. + preBuild = lib.optionalString (go.version == "1.25.5") '' + sed -e 's:go 1.25.6:go 1.25.5:g' -i go.mod + ''; + vendorHash = null; buildInputs = lib.singleton dbmate;