minio: Init at 20160821
This commit is contained in:
parent
587348743c
commit
2597562d42
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib, stdenv, fetchurl, go }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "minio-${shortVersion}";
|
||||||
|
|
||||||
|
shortVersion = "20160821";
|
||||||
|
longVersion = "2016-08-21T02:44:47Z";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/minio/minio/archive/RELEASE.${lib.replaceStrings [":"] ["-"] longVersion}.tar.gz";
|
||||||
|
sha256 = "159196bnb4b7f00jh9gll9kqqxq1ifxv1kg5bd6yjpqf5qca4pkn";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ go ];
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
d=$TMPDIR/src/github.com/minio/minio
|
||||||
|
mkdir -p $d
|
||||||
|
tar xf $src -C $d --strip-component 1
|
||||||
|
export GOPATH=$TMPDIR
|
||||||
|
cd $d
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
go build -o $out/bin/minio \
|
||||||
|
--ldflags "-X github.com/minio/minio/cmd.Version=${longVersion}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = "true";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = https://www.minio.io/;
|
||||||
|
description = "An S3-compatible object storage server";
|
||||||
|
maintainers = [ lib.maintainers.eelco ];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
|
@ -10417,6 +10417,8 @@ in
|
||||||
|
|
||||||
mfi = callPackage ../servers/mfi { };
|
mfi = callPackage ../servers/mfi { };
|
||||||
|
|
||||||
|
minio = callPackage ../servers/minio { };
|
||||||
|
|
||||||
# Backwards compatibility.
|
# Backwards compatibility.
|
||||||
mod_dnssd = pkgs.apacheHttpdPackages.mod_dnssd;
|
mod_dnssd = pkgs.apacheHttpdPackages.mod_dnssd;
|
||||||
mod_fastcgi = pkgs.apacheHttpdPackages.mod_fastcgi;
|
mod_fastcgi = pkgs.apacheHttpdPackages.mod_fastcgi;
|
||||||
|
|
Loading…
Reference in New Issue