nixpkgs/pkgs/servers/minio/default.nix

32 lines
798 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
2016-09-07 15:22:02 +00:00
buildGoModule rec {
pname = "minio";
version = "2020-05-01T22-19-14Z";
2016-09-07 15:22:02 +00:00
src = fetchFromGitHub {
owner = "minio";
repo = "minio";
rev = "RELEASE.${version}";
sha256 = "0yyq5j82rcl8yhn2jg8sjfxii6kzbrbmxvb05yiwv7p0q42ag5rn";
2016-09-07 15:22:02 +00:00
};
modSha256 = "1g5vwllxpiy4qlfhn3v5k6sn4g4qpbv0hpg32y1vi2q342lag116";
2016-09-07 15:22:02 +00:00
2019-06-18 14:48:17 +00:00
subPackages = [ "." ];
buildFlagsArray = [''-ldflags=
-s -w -X github.com/minio/minio/cmd.Version=${version}
''];
2016-09-07 15:22:02 +00:00
passthru.tests.minio = nixosTests.minio;
meta = with stdenv.lib; {
homepage = "https://www.minio.io/";
2016-09-07 15:22:02 +00:00
description = "An S3-compatible object storage server";
maintainers = with maintainers; [ eelco bachp ];
platforms = platforms.unix;
license = licenses.asl20;
2016-09-07 15:22:02 +00:00
};
}