mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
prometheus: Include console templates and libraries
Also tweaked to work with the recent goPackages multiple-outputs stuff.
This commit is contained in:
parent
1d78437848
commit
96882b14d5
@ -1,6 +1,6 @@
|
||||
{ stdenv, lib, goPackages, fetchFromGitHub, vim }:
|
||||
|
||||
goPackages.buildGoPackage rec {
|
||||
let self = goPackages.buildGoPackage rec {
|
||||
name = "prometheus-${version}";
|
||||
version = "0.15.1";
|
||||
goPackagePath = "github.com/prometheus/prometheus";
|
||||
@ -27,6 +27,12 @@ goPackages.buildGoPackage rec {
|
||||
yaml-v2
|
||||
];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$bin/share/doc/prometheus" "$bin/etc/prometheus"
|
||||
cp -a $src/documentation/* $bin/share/doc/prometheus
|
||||
cp -a $src/console_libraries $src/consoles $bin/etc/prometheus
|
||||
'';
|
||||
|
||||
# Metadata that gets embedded into the binary
|
||||
buildFlagsArray = let t = "${goPackagePath}/version"; in
|
||||
''
|
||||
@ -46,4 +52,6 @@ goPackages.buildGoPackage rec {
|
||||
maintainers = with maintainers; [ benley ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
in self.bin
|
||||
|
Loading…
Reference in New Issue
Block a user