Prometheus: update to 0.14.0

+78 -55
+47 -50
pkgs/servers/monitoring/prometheus/default.nix
··· 1 - { stdenv, lib, goPackages, fetchFromGitHub, protobuf, vim }: 1 + { stdenv, lib, goPackages, fetchFromGitHub, vim }: 2 2 3 3 goPackages.buildGoPackage rec { 4 - name = "prometheus-${version}"; 5 - version = "0.13.4"; 6 - goPackagePath = "github.com/prometheus/prometheus"; 7 - rev = "612da96c46f0b7ea6cc28a3fc614f14eae0189d0"; 4 + name = "prometheus-${version}"; 5 + version = "0.14.0"; 6 + goPackagePath = "github.com/prometheus/prometheus"; 7 + rev = "67e77411ba30b1b0ce0989c85b6684fb3adef430"; 8 8 9 - src = fetchFromGitHub { 10 - inherit rev; 11 - owner = "prometheus"; 12 - repo = "prometheus"; 13 - sha256 = "1r3pcnxs1cdh18lmqd60r3nh614cw543wzd4slkr2nzr73pn5x4j"; 14 - }; 9 + src = fetchFromGitHub { 10 + inherit rev; 11 + owner = "prometheus"; 12 + repo = "prometheus"; 13 + sha256 = "06xsxigimw5i1fla0k83pf5bpmybskvy50433hs8h876gyvgjxp9"; 14 + }; 15 15 16 - buildInputs = [ 17 - goPackages.dns 18 - goPackages.glog 19 - goPackages.protobuf 20 - goPackages.goleveldb 21 - goPackages.net 22 - goPackages.prometheus.client_golang 23 - protobuf # the non-golang package, for protoc 24 - vim # for xxd, used in embed-static.sh 25 - ]; 16 + buildInputs = [ 17 + goPackages.consul 18 + goPackages.dns 19 + goPackages.fsnotify.v1 20 + goPackages.goleveldb 21 + goPackages.logrus 22 + goPackages.net 23 + goPackages.prometheus.client_golang 24 + goPackages.prometheus.log 25 + goPackages.yaml-v2 26 + vim # for xxd, used in embed-static.sh 27 + ]; 26 28 27 - # Metadata that gets embedded into the binary 28 - buildFlagsArray = '' 29 - -ldflags= 30 - -X main.buildVersion ${version} 31 - -X main.buildRevision ${builtins.substring 0 6 rev} 32 - -X main.buildBranch master 33 - -X main.buildUser nix@nixpkgs 34 - -X main.buildDate 20150101-00:00:00 35 - -X main.goVersion ${lib.getVersion goPackages.go} 36 - ''; 37 - 38 - preBuild = '' 39 - ( 40 - cd "go/src/$goPackagePath" 41 - protoc --proto_path=./config \ 42 - --go_out=./config/generated/ \ 43 - ./config/config.proto 29 + # Metadata that gets embedded into the binary 30 + buildFlagsArray = '' 31 + -ldflags= 32 + -X main.buildVersion ${version} 33 + -X main.buildRevision ${builtins.substring 0 6 rev} 34 + -X main.buildBranch master 35 + -X main.buildUser nix@nixpkgs 36 + -X main.buildDate 20150101-00:00:00 37 + -X main.goVersion ${lib.getVersion goPackages.go} 38 + ''; 44 39 45 - cd web 46 - ${stdenv.shell} ../utility/embed-static.sh static templates \ 47 - | gofmt > blob/files.go 48 - ) 49 - ''; 40 + preBuild = '' 41 + ( 42 + cd "go/src/$goPackagePath/web" 43 + ${stdenv.shell} ../utility/embed-static.sh static templates \ 44 + | gofmt > blob/files.go 45 + ) 46 + ''; 50 47 51 - meta = with lib; { 52 - description = "Service monitoring system and time series database"; 53 - homepage = http://prometheus.github.io; 54 - license = licenses.asl20; 55 - maintainers = with maintainers; [ benley ]; 56 - platforms = platforms.unix; 57 - }; 48 + meta = with lib; { 49 + description = "Service monitoring system and time series database"; 50 + homepage = http://prometheus.io; 51 + license = licenses.asl20; 52 + maintainers = with maintainers; [ benley ]; 53 + platforms = platforms.unix; 54 + }; 58 55 }
+31 -5
pkgs/top-level/go-packages.nix
··· 1991 1991 buildInputs = [ protobuf ]; 1992 1992 }; 1993 1993 1994 + prometheus.log = buildGoPackage rec { 1995 + name = "prometheus-log-${version}"; 1996 + version = "git-2015-05-29"; 1997 + goPackagePath = "github.com/prometheus/log"; 1998 + src = fetchFromGitHub { 1999 + rev = "439e5db48fbb50ebbaf2c816030473a62f505f55"; 2000 + owner = "prometheus"; 2001 + repo = "log"; 2002 + sha256 = "1fl23gsw2hn3c1y91qckr661sybqcw2gqnd1gllxn3hp6p2w6hxv"; 2003 + }; 2004 + propagatedBuildInputs = [ logrus ]; 2005 + }; 2006 + 1994 2007 prometheus.procfs = buildGoPackage rec { 1995 2008 rev = "351fbfac67c8ae8bcacd468f678f5e8d5a585d3d"; 1996 2009 name = "prometheus-procfs-${stdenv.lib.strings.substring 0 7 rev}"; ··· 2413 2426 }; 2414 2427 2415 2428 yaml-v1 = buildGoPackage rec { 2416 - rev = "b0c168ac0cf9493da1f9bb76c34b26ffef940b4a"; 2417 - name = "yaml-v1-${stdenv.lib.strings.substring 0 7 rev}"; 2429 + name = "yaml-v1-${version}"; 2430 + version = "git-2015-05-01"; 2418 2431 goPackagePath = "gopkg.in/yaml.v1"; 2419 - src = fetchgit { 2420 - inherit rev; 2421 - url = "https://github.com/go-yaml/yaml.git"; 2432 + src = fetchFromGitHub { 2433 + rev = "b0c168ac0cf9493da1f9bb76c34b26ffef940b4a"; 2434 + owner = "go-yaml"; 2435 + repo = "yaml"; 2422 2436 sha256 = "0jbdy41pplf2d1j24qwr8gc5qsig6ai5ch8rwgvg72kq9q0901cy"; 2437 + }; 2438 + }; 2439 + 2440 + yaml-v2 = buildGoPackage rec { 2441 + name = "yaml-v2-${version}"; 2442 + version = "git-2015-05-19"; 2443 + goPackagePath = "gopkg.in/yaml.v2"; 2444 + src = fetchFromGitHub { 2445 + rev = "c1cd2254a6dd314c9d73c338c12688c9325d85c6"; 2446 + owner = "go-yaml"; 2447 + repo = "yaml"; 2448 + sha256 = "0xhv0i700hh8lczrwxhn3c99npqma7k4337qrh6k36falm0jpp4s"; 2423 2449 }; 2424 2450 }; 2425 2451