nixpkgs/pkgs/servers/minio/default.nix

30 lines
734 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2016-09-07 17:22:02 +02:00
buildGoModule rec {
pname = "minio";
version = "2019-10-12T01-39-57Z";
2016-09-07 17:22:02 +02:00
src = fetchFromGitHub {
owner = "minio";
repo = "minio";
rev = "RELEASE.${version}";
sha256 = "14rqwdhk2awdpcavkaqndf85c6aww5saarbfa2skc9z76ccq6114";
2016-09-07 17:22:02 +02:00
};
modSha256 = "1cnccmmqb63l78rnjwh9bivyfr79ixjg106fbgcrn3pwghfag7ma";
2016-09-07 17:22:02 +02:00
2019-06-18 16:48:17 +02:00
subPackages = [ "." ];
buildFlagsArray = [''-ldflags=
-X github.com/minio/minio/cmd.Version=${version}
''];
2016-09-07 17:22:02 +02:00
meta = with stdenv.lib; {
2016-09-07 17:22:02 +02:00
homepage = https://www.minio.io/;
description = "An S3-compatible object storage server";
maintainers = with maintainers; [ eelco bachp ];
platforms = platforms.unix;
license = licenses.asl20;
2016-09-07 17:22:02 +02:00
};
}