nixpkgs/pkgs/servers/minio/default.nix

30 lines
736 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2016-09-07 16:22:02 +01:00
buildGoModule rec {
pname = "minio";
version = "2020-03-25T07-03-04Z";
2016-09-07 16:22:02 +01:00
src = fetchFromGitHub {
owner = "minio";
repo = "minio";
rev = "RELEASE.${version}";
sha256 = "0xdflc7pfx1misbh695x8kmqpysi5iydsarr9mwmjragf5b1kbl5";
2016-09-07 16:22:02 +01:00
};
modSha256 = "09kbibsfa7qq55paqr7wcs4gpwk6g5pknc5fjssmd12nm2cji96k";
2016-09-07 16:22:02 +01:00
2019-06-18 15:48:17 +01:00
subPackages = [ "." ];
buildFlagsArray = [''-ldflags=
-X github.com/minio/minio/cmd.Version=${version}
''];
2016-09-07 16:22:02 +01:00
meta = with stdenv.lib; {
homepage = "https://www.minio.io/";
2016-09-07 16:22:02 +01:00
description = "An S3-compatible object storage server";
maintainers = with maintainers; [ eelco bachp ];
platforms = platforms.unix;
license = licenses.asl20;
2016-09-07 16:22:02 +01:00
};
}