Merge pull request #29994 from bachp/minio-update

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

authored by

Jörg Thalheim and committed by
GitHub
62922af2 16a43e45

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