36 lines
809 B
Nix
36 lines
809 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "versitygw";
|
|
version = "1.0.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "versity";
|
|
repo = "versitygw";
|
|
tag = "v${version}";
|
|
hash = "sha256-MLM3pjcSV+4cpHcUP4m2YqadOEdwAnnk7IvaF9vXw48=";
|
|
};
|
|
|
|
vendorHash = "sha256-EV2GWfRvYHFosl2NjRkSu1acWKxcCd1I8gVvyXA4O1A=";
|
|
|
|
doCheck = false; # Require access to online S3 services
|
|
|
|
ldFlags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
meta = {
|
|
description = "Versity S3 gateway, a high-performance S3 translation service";
|
|
homepage = "https://github.com/versity/versitygw";
|
|
changelog = "https://github.com/versity/versitygw/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ genga898 ];
|
|
mainProgram = "versitygw";
|
|
};
|
|
}
|