mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 22:04:20 +00:00
Merge pull request #273316 from jpds/zfs-exporter-build-info-version
prometheus-zfs-exporter: Add version label to _build_info
This commit is contained in:
commit
56d4255ce9
@ -16,6 +16,16 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorHash = "sha256-uIilESEmAxANxFOy7qvYxlF/bId/Kqh4jUspNknlhlc=";
|
vendorHash = "sha256-uIilESEmAxANxFOy7qvYxlF/bId/Kqh4jUspNknlhlc=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X github.com/prometheus/common/version.Version=${version}"
|
||||||
|
"-X github.com/prometheus/common/version.Revision=unknown"
|
||||||
|
"-X github.com/prometheus/common/version.Branch=unknown"
|
||||||
|
"-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
|
||||||
|
"-X github.com/prometheus/common/version.BuildDate=unknown"
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm444 -t $out/share/doc/${pname} *.md
|
install -Dm444 -t $out/share/doc/${pname} *.md
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user