forked from mirrors/nixpkgs
29 lines
695 B
Nix
29 lines
695 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "minio-${version}";
|
|
|
|
version = "2018-12-27T18-33-08Z";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "minio";
|
|
repo = "minio";
|
|
rev = "RELEASE.${version}";
|
|
sha256 = "076m4w6z2adl8pi9x7in8s2pa51vj4qlk3m32ibh6yhqfzpbfgd2";
|
|
};
|
|
|
|
goPackagePath = "github.com/minio/minio";
|
|
|
|
buildFlagsArray = [''-ldflags=
|
|
-X github.com/minio/minio/cmd.Version=${version}
|
|
''];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.minio.io/;
|
|
description = "An S3-compatible object storage server";
|
|
maintainers = with maintainers; [ eelco bachp ];
|
|
platforms = platforms.unix;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|