Merge pull request #34942 from bachp/feat/minio-update
Update minio client and server
This commit is contained in:
commit
3154e4a25e
|
@ -3,13 +3,13 @@
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "minio-${version}";
|
name = "minio-${version}";
|
||||||
|
|
||||||
version = "2018-01-18T20-33-21Z";
|
version = "2018-02-09T22-40-05Z";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "minio";
|
owner = "minio";
|
||||||
repo = "minio";
|
repo = "minio";
|
||||||
rev = "RELEASE.${version}";
|
rev = "RELEASE.${version}";
|
||||||
sha256 = "102rilh1kjf9y6g6y83ikk42w7g1sbld11md3wm54hynyh956xrs";
|
sha256 = "0qxrzmkm5hza5xbx9dkrgadwjg3hykwf79hix3s0laqyksmpj9mk";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/minio/minio";
|
goPackagePath = "github.com/minio/minio";
|
||||||
|
@ -22,7 +22,7 @@ buildGoPackage rec {
|
||||||
homepage = https://www.minio.io/;
|
homepage = https://www.minio.io/;
|
||||||
description = "An S3-compatible object storage server";
|
description = "An S3-compatible object storage server";
|
||||||
maintainers = with maintainers; [ eelco bachp ];
|
maintainers = with maintainers; [ eelco bachp ];
|
||||||
platforms = platforms.x86_64 ++ ["aarch64-linux"];
|
platforms = platforms.unix;
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +1,28 @@
|
||||||
{ lib, stdenv, fetchurl, go }:
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildGoPackage rec {
|
||||||
name = "minio-client-${shortVersion}";
|
name = "minio-client-${version}";
|
||||||
|
|
||||||
shortVersion = "20170206";
|
version = "2018-02-09T23-07-36Z";
|
||||||
longVersion = "2017-02-06T20-16-19Z";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/minio/mc/archive/RELEASE.${lib.replaceStrings [":"] ["-"] longVersion}.tar.gz";
|
owner = "minio";
|
||||||
sha256 = "0k66kr7x669jvydcxp3rpvg8p9knhmcihpnjiqynhqgrdy16mr1f";
|
repo = "mc";
|
||||||
|
rev = "RELEASE.${version}";
|
||||||
|
sha256 = "1mzjqcvl8740jkkrsyycwqminnd0vdl1m2mvq8hnywj8hs816bfd";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ go ];
|
goPackagePath = "github.com/minio/mc";
|
||||||
|
|
||||||
unpackPhase = ''
|
buildFlagsArray = [''-ldflags=
|
||||||
d=$TMPDIR/src/github.com/minio/mc
|
-X github.com/minio/mc/cmd.Version=${version}
|
||||||
mkdir -p $d
|
''];
|
||||||
tar xf $src -C $d --strip-component 1
|
|
||||||
export GOPATH=$TMPDIR
|
|
||||||
cd $d
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
meta = with stdenv.lib; {
|
||||||
mkdir -p $out/bin
|
|
||||||
go build -o $out/bin/minio-client \
|
|
||||||
--ldflags "-X github.com/minio/mc/cmd.Version=${longVersion}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = "ln -s minio-client $out/bin/mc";
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://github.com/minio/mc;
|
homepage = https://github.com/minio/mc;
|
||||||
description = "A replacement for ls, cp, mkdir, diff and rsync commands for filesystems and object storage";
|
description = "A replacement for ls, cp, mkdir, diff and rsync commands for filesystems and object storage";
|
||||||
maintainers = [ lib.maintainers.eelco ];
|
maintainers = with maintainers; [ eelco bachp ];
|
||||||
platforms = lib.platforms.linux;
|
platforms = platforms.unix;
|
||||||
license = lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue