Files
nixpkgs/pkgs/by-name/sv/svix-cli/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
fetchpatch,
buildGoModule,
}:
buildGoModule rec {
version = "0.21.1";
pname = "svix-cli";
revision = "v${version}";
src = fetchFromGitHub {
owner = "svix";
repo = "svix-cli";
rev = revision;
hash = "sha256-bHcxhJs4Nu/hdiftQFZMx4M5iqFtpOzrsvXOgo9NlDc=";
};
vendorHash = "sha256-qSzEpxktdAV+mHa+586mKvpclCpXR6sE7HNcPZywd4s=";
# Increase minimum go version to 1.17 as the build fails with 1.16
# due to modules requiring code that was introduced in 1.17
# PR submitted upstream: https://github.com/svix/svix-cli/pull/103
patches = [
(fetchpatch {
name = "increase-minimum-go.patch";
url = "https://github.com/svix/svix-cli/commit/3c6fc06f72bd7e43165c31019b206ebad175d758.patch";
hash = "sha256-OwiyBZ3IZGkvo6zEZY1+XYFrqT+RseqTJ5xwCl3LtVg=";
})
];
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X github.com/svix/svix-cli/version.Version=v${version}"
];
meta = with lib; {
description = "CLI for interacting with the Svix API";
homepage = "https://github.com/svix/svix-cli/";
license = licenses.gpl3;
maintainers = with maintainers; [ techknowlogick ];
};
}