ncps: 0.9.1 -> 0.9.2 (#493732)

This commit is contained in:
Wael Nasreddine
2026-02-24 18:49:01 +00:00
committed by GitHub
+3 -21
View File
@@ -3,7 +3,6 @@
curl,
dbmate,
fetchFromGitHub,
go,
jq,
lib,
makeWrapper,
@@ -21,25 +20,16 @@
buildGoModule (finalAttrs: {
pname = "ncps";
version = "0.9.1";
version = "0.9.2";
src = fetchFromGitHub {
owner = "kalbasit";
repo = "ncps";
tag = "v${finalAttrs.version}";
hash = "sha256-cu7fgzQTpo8aLpK0/kJ3xcCVFCmFMQ6RKwUWW5Zwu6s=";
hash = "sha256-LRabKv+4xYQn2XH4AIacFkn3ewUd2S3UlVWCA6MUweU=";
};
# 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=";
vendorHash = "sha256-PpHSkD7+csPfUXoYRuKhBm1iBtTSwJhOxuW/4ayv9hY=";
ldflags = [
"-X github.com/kalbasit/ncps/pkg/ncps.Version=v${finalAttrs.version}"
@@ -112,14 +102,6 @@ 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;