lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 18.03-beta 42 lines 1.2 kB view raw
1{ stdenv, go, buildGoPackage, fetchFromGitHub }: 2 3buildGoPackage rec { 4 name = "prometheus-${version}"; 5 version = "1.8.1"; 6 rev = "v${version}"; 7 8 goPackagePath = "github.com/prometheus/prometheus"; 9 10 src = fetchFromGitHub { 11 inherit rev; 12 owner = "prometheus"; 13 repo = "prometheus"; 14 sha256 = "07xvpjhhxc0r73qfmkvf94zhv19zv76privw6blg35k5nxcnj7j4"; 15 }; 16 17 docheck = true; 18 19 buildFlagsArray = let t = "${goPackagePath}/version"; in '' 20 -ldflags= 21 -X ${t}.Version=${version} 22 -X ${t}.Revision=unknown 23 -X ${t}.Branch=unknown 24 -X ${t}.BuildUser=nix@nixpkgs 25 -X ${t}.BuildDate=unknown 26 -X ${t}.GoVersion=${stdenv.lib.getVersion go} 27 ''; 28 29 preInstall = '' 30 mkdir -p "$bin/share/doc/prometheus" "$bin/etc/prometheus" 31 cp -a $src/documentation/* $bin/share/doc/prometheus 32 cp -a $src/console_libraries $src/consoles $bin/etc/prometheus 33 ''; 34 35 meta = with stdenv.lib; { 36 description = "Service monitoring system and time series database"; 37 homepage = https://prometheus.io; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ benley fpletz ]; 40 platforms = platforms.unix; 41 }; 42}