Merge pull request #29994 from bachp/minio-update

minio: 20170613 -> 2017-09-29T19-16-56Z

Changed files
+9 -8
nixos
tests
pkgs
servers
minio
+3 -1
nixos/tests/minio.nix
···
secretKey = "V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12";
};
environment.systemPackages = [ pkgs.minio-client ];
};
};
···
startAll;
$machine->waitForUnit("minio.service");
$machine->waitForOpenPort(9000);
-
$machine->succeed("curl --fail http://localhost:9000/minio/index.html");
# Create a test bucket on the server
$machine->succeed("mc config host add minio http://localhost:9000 BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 S3v4");
···
secretKey = "V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12";
};
environment.systemPackages = [ pkgs.minio-client ];
+
+
# Minio requires at least 1GiB of free disk space to run.
+
virtualisation.diskSize = 4 * 1024;
};
};
···
startAll;
$machine->waitForUnit("minio.service");
$machine->waitForOpenPort(9000);
# Create a test bucket on the server
$machine->succeed("mc config host add minio http://localhost:9000 BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 S3v4");
+6 -7
pkgs/servers/minio/default.nix
···
{ lib, stdenv, fetchurl, go }:
stdenv.mkDerivation rec {
-
name = "minio-${shortVersion}";
-
shortVersion = "20170613";
-
longVersion = "2017-06-13T19-01-01Z";
src = fetchurl {
-
url = "https://github.com/minio/minio/archive/RELEASE.${lib.replaceStrings [":"] ["-"] longVersion}.tar.gz";
-
sha256 = "1rrlgn0nsvfn0lr9ffihjdb96n4znsvjlz1h7bwvz8nwhbn0lfsf";
};
buildInputs = [ go ];
···
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.x86_64;
license = lib.licenses.asl20;
};
···
{ lib, stdenv, fetchurl, go }:
stdenv.mkDerivation rec {
+
name = "minio-${version}";
+
version = "2017-09-29T19-16-56Z";
src = fetchurl {
+
url = "https://github.com/minio/minio/archive/RELEASE.${version}.tar.gz";
+
sha256 = "1h028gyfvyh5x6k4fsj4s64sgzqy7jgln6kvs27bnxzigj6dp2wx";
};
buildInputs = [ go ];
···
buildPhase = ''
mkdir -p $out/bin
go build -o $out/bin/minio \
+
--ldflags "-X github.com/minio/minio/cmd.Version=${version}"
'';
installPhase = "true";
···
meta = {
homepage = https://www.minio.io/;
description = "An S3-compatible object storage server";
+
maintainers = with lib.maintainers; [ eelco bachp ];
platforms = lib.platforms.x86_64;
license = lib.licenses.asl20;
};