1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/servers/minio/default.nix
Pascal Bach dffe1e569c minio: 2017-09-29T19-16-56Z -> 2018-01-02T23-07-00Z (#33724)
Contains security fixes (see: https://blog.minio.io/minio-release-jan-2nd-2018-security-advisory-ef0342a4ddba)

Use buildGoPackage, otherwise we will have the go build toolchain in our runtime closure.
2018-01-12 09:31:58 +00:00

29 lines
718 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "minio-${version}";
version = "2018-01-02T23-07-00Z";
src = fetchFromGitHub {
owner = "minio";
repo = "minio";
rev = "RELEASE.${version}";
sha256 = "1bpiy6q9782mxs5f5lzw6c7zx83s2i68rf5f65xa9z7cyl19si74";
};
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.x86_64 ++ ["aarch64-linux"];
license = licenses.asl20;
};
}