Merge branch 'master' into staging
Hydra: ?compare=1400181
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
{ lib, stdenv, fetchurl, go }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "minio-${shortVersion}";
|
||||
name = "minio-${version}";
|
||||
|
||||
shortVersion = "20170613";
|
||||
longVersion = "2017-06-13T19-01-01Z";
|
||||
version = "2017-09-29T19-16-56Z";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/minio/minio/archive/RELEASE.${lib.replaceStrings [":"] ["-"] longVersion}.tar.gz";
|
||||
sha256 = "1rrlgn0nsvfn0lr9ffihjdb96n4znsvjlz1h7bwvz8nwhbn0lfsf";
|
||||
url = "https://github.com/minio/minio/archive/RELEASE.${version}.tar.gz";
|
||||
sha256 = "1h028gyfvyh5x6k4fsj4s64sgzqy7jgln6kvs27bnxzigj6dp2wx";
|
||||
};
|
||||
|
||||
buildInputs = [ go ];
|
||||
@@ -24,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
buildPhase = ''
|
||||
mkdir -p $out/bin
|
||||
go build -o $out/bin/minio \
|
||||
--ldflags "-X github.com/minio/minio/cmd.Version=${longVersion}"
|
||||
--ldflags "-X github.com/minio/minio/cmd.Version=${version}"
|
||||
'';
|
||||
|
||||
installPhase = "true";
|
||||
@@ -32,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = https://www.minio.io/;
|
||||
description = "An S3-compatible object storage server";
|
||||
maintainers = [ lib.maintainers.eelco ];
|
||||
maintainers = with lib.maintainers; [ eelco bachp ];
|
||||
platforms = lib.platforms.x86_64;
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "minio-exporter-${version}";
|
||||
version = "0.1.0";
|
||||
rev = "v${version}";
|
||||
|
||||
goPackagePath = "github.com/joe-pll/minio-exporter";
|
||||
|
||||
src= fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "joe-pll";
|
||||
repo = "minio-exporter";
|
||||
sha256 = "14lz4dg0n213b6xy12fh4r20k1rcnflnfg6gjskk5zr8h7978hjx";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Prometheus exporter for Minio cloud storage server";
|
||||
homepage = https://github.com/joe-pll/minio-exporter;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ bachp ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
156
pkgs/servers/monitoring/prometheus/minio-exporter/deps.nix
Normal file
156
pkgs/servers/monitoring/prometheus/minio-exporter/deps.nix
Normal file
@@ -0,0 +1,156 @@
|
||||
# This file was generated by go2nix.
|
||||
[
|
||||
{
|
||||
goPackagePath = "github.com/alecthomas/template";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/alecthomas/template";
|
||||
rev = "a0175ee3bccc567396460bf5acd36800cb10c49c";
|
||||
sha256 = "0qjgvvh26vk1cyfq9fadyhfgdj36f1iapbmr5xp6zqipldz8ffxj";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/alecthomas/units";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/alecthomas/units";
|
||||
rev = "2efee857e7cfd4f3d0138cc3cbb1b4966962b93a";
|
||||
sha256 = "1j65b91qb9sbrml9cpabfrcf07wmgzzghrl7809hjjhrmbzri5bl";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/beorn7/perks";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/beorn7/perks";
|
||||
rev = "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9";
|
||||
sha256 = "1hrybsql68xw57brzj805xx2mghydpdiysv3gbhr7f5wlxj2514y";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/go-ini/ini";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/go-ini/ini";
|
||||
rev = "c787282c39ac1fc618827141a1f762240def08a3";
|
||||
sha256 = "0c784qichlpqdk1zwafislskchr7f4dl7fy3g3w7xg2w63xpd7r0";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/golang/protobuf";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/golang/protobuf";
|
||||
rev = "130e6b02ab059e7b717a096f397c5b60111cae74";
|
||||
sha256 = "0zk4d7gcykig9ld8f5h86fdxshm2gs93a2xkpf52jd5m4z59q26s";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/matttproud/golang_protobuf_extensions";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/matttproud/golang_protobuf_extensions";
|
||||
rev = "c12348ce28de40eed0136aa2b644d0ee0650e56c";
|
||||
sha256 = "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/minio/go-homedir";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/minio/go-homedir";
|
||||
rev = "21304a94172ae3a09dee2cd86a12fb6f842138c7";
|
||||
sha256 = "1kvz91gvdrpzddlpcbf0a2kf75bfqzd40kwzq29jwhf1y5ii6cq4";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/minio/minio-go";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/minio/minio-go";
|
||||
rev = "cb3571b7d8d904c4714033deb984d0a0b66955be";
|
||||
sha256 = "165filzwslnqdgsp8wf5k1zm8wcpnsffsaffw25igy0ik8swr06w";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/minio/minio";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/minio/minio";
|
||||
rev = "60cc6184d253efee4a3120683517028342229e21";
|
||||
sha256 = "0n2l163v45jraylv43jwqm0cxin68vw8cw7k21qniahhr46y4dqf";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/prometheus/client_golang";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/prometheus/client_golang";
|
||||
rev = "353b8c3f3776541879f9abfd8fa8b1ae162ab394";
|
||||
sha256 = "068fk3bdfsaij37973c66065w2cn46ahwjs44pw9v1mqk8bsrn3a";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/prometheus/client_model";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/prometheus/client_model";
|
||||
rev = "6f3806018612930941127f2a7c6c453ba2c527d2";
|
||||
sha256 = "1413ibprinxhni51p0755dp57r9wvbw7xgj9nmdaxmhzlqhc86j4";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/prometheus/common";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/prometheus/common";
|
||||
rev = "2f17f4a9d485bf34b4bfaccc273805040e4f86c8";
|
||||
sha256 = "0r1dyipnd7n9vp4p6gs1y4v7ggq4avj06pr90l4qrjll55h281js";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/prometheus/procfs";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/prometheus/procfs";
|
||||
rev = "e645f4e5aaa8506fc71d6edbc5c4ff02c04c46f2";
|
||||
sha256 = "18hwygbawbqilz7h8fl25xpbciwalkslb4igqn4cr9d8sqp7d3np";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/sirupsen/logrus";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/sirupsen/logrus";
|
||||
rev = "89742aefa4b206dcf400792f3bd35b542998eb3b";
|
||||
sha256 = "0hk7fabx59msg2y0iik6xvfp80s73ybrwlcshbm9ds91iqbkcxi6";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/crypto";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/crypto";
|
||||
rev = "76eec36fa14229c4b25bb894c2d0e591527af429";
|
||||
sha256 = "1c57fdg70vhf7pigiwb2xdap6ak0c0s2pzaj9pq000aqfw54i4s8";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "golang.org/x/sys";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/sys";
|
||||
rev = "314a259e304ff91bd6985da2a7149bbf91237993";
|
||||
sha256 = "0vya62c3kmhmqx6awlxx8hc84987xkym9rhs0q28vlhwk9kczdaa";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "gopkg.in/alecthomas/kingpin.v2";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://gopkg.in/alecthomas/kingpin.v2";
|
||||
rev = "1087e65c9441605df944fb12c33f0fe7072d18ca";
|
||||
sha256 = "18llqzkdqf62qbqcv2fd3j0igl6cwwn4dissf5skkvxrcxjcmmj0";
|
||||
};
|
||||
}
|
||||
]
|
||||
@@ -2576,11 +2576,11 @@ let
|
||||
}) // {inherit ;};
|
||||
|
||||
xorgserver = (mkDerivation "xorgserver" {
|
||||
name = "xorg-server-1.19.3";
|
||||
name = "xorg-server-1.19.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = mirror://xorg/individual/xserver/xorg-server-1.19.3.tar.bz2;
|
||||
sha256 = "162s1v901djr57gxmmk4airk8hiwcz79dqyz72972x1lw1k82yk7";
|
||||
url = mirror://xorg/individual/xserver/xorg-server-1.19.4.tar.bz2;
|
||||
sha256 = "1a690fzv5l5ks45g9zhlzdskdq8q73mcbpb9a3wz3shxm778lxda";
|
||||
};
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ dri2proto dri3proto renderproto openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
|
||||
|
||||
@@ -562,6 +562,13 @@ in
|
||||
};
|
||||
|
||||
xf86videointel = attrs: attrs // {
|
||||
# the update script only works with released tarballs :-/
|
||||
name = "xf86-video-intel-2017-04-18";
|
||||
src = args.fetchurl {
|
||||
url = "http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/snapshot/"
|
||||
+ "c72bb27a3a68ecc616ce2dc8e9a1d20354504562.tar.gz";
|
||||
sha256 = "1awxbig135nmq7qa8jzggqr4q32k6ngnal2lckrdkg7zqi40zdv8";
|
||||
};
|
||||
buildInputs = attrs.buildInputs ++ [xorg.libXfixes xorg.libXScrnSaver xorg.pixman];
|
||||
nativeBuildInputs = attrs.nativeBuildInputs ++ [args.autoreconfHook xorg.utilmacros];
|
||||
configureFlags = "--with-default-dri=3 --enable-tools";
|
||||
|
||||
@@ -185,7 +185,7 @@ mirror://xorg/individual/app/xlsfonts-1.0.5.tar.bz2
|
||||
mirror://xorg/individual/app/xmag-1.0.6.tar.bz2
|
||||
mirror://xorg/individual/app/xmodmap-1.0.9.tar.bz2
|
||||
mirror://xorg/individual/doc/xorg-docs-1.7.1.tar.bz2
|
||||
mirror://xorg/individual/xserver/xorg-server-1.19.3.tar.bz2
|
||||
mirror://xorg/individual/xserver/xorg-server-1.19.4.tar.bz2
|
||||
mirror://xorg/X11R7.7/src/everything/xorg-sgml-doctools-1.11.tar.bz2
|
||||
mirror://xorg/X11R7.7/src/everything/xpr-1.0.4.tar.bz2
|
||||
mirror://xorg/individual/app/xprop-1.2.2.tar.bz2
|
||||
|
||||
Reference in New Issue
Block a user