minio-warp: init at 1.0.6 (#359607)
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "minio-warp";
|
||||
version = "1.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "minio";
|
||||
repo = "warp";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Zfjj/cYxucjuJRzER6MczQFqu8kdfUUXqC0mcQFbk0Q=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-GD9Om5jymrRbeCVGNXtaam5Dmfg99CtEeiAFENhwyyY=";
|
||||
|
||||
# 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" ];
|
||||
|
||||
meta = {
|
||||
description = "S3 benchmarking tool";
|
||||
homepage = "https://github.com/minio/warp";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
maintainers = with lib.maintainers; [ christoph-heiss ];
|
||||
mainProgram = "minio-warp";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user