Files
nixpkgs/pkgs/by-name/mi/minio-warp/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

52 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
buildGoModule,
versionCheckHook,
nix-update-script,
}:
buildGoModule rec {
pname = "minio-warp";
version = "1.3.0";
src = fetchFromGitHub {
owner = "minio";
repo = "warp";
rev = "v${version}";
hash = "sha256-HBoep3GSjtjucqOEe0JbVLjmAA/1/l5IXEIv+xoyOew=";
};
vendorHash = "sha256-fo4LLRqqylx4oZOkLOgFzT436+vjap9dW+IpQ0IFa8Y=";
# See .goreleaser.yml
ldflags = [
"-s"
"-w"
"-X github.com/minio/warp/pkg.ReleaseTag=v${version}"
"-X github.com/minio/warp/pkg.CommitID=${src.rev}"
"-X github.com/minio/warp/pkg.Version=${version}"
"-X github.com/minio/warp/pkg.ShortCommitID=${src.rev}"
"-X github.com/minio/warp/pkg.ReleaseTime=1970-01-01T00:00:00Z"
];
postInstall = ''
mv $out/bin/warp $out/bin/minio-warp
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "S3 benchmarking tool";
homepage = "https://github.com/minio/warp";
changelog = "https://github.com/minio/warp/releases/tag/v${version}";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ christoph-heiss ];
mainProgram = "minio-warp";
};
}