prometheus.node-exporter: cleanup
This commit is contained in:
parent
a2758d5a99
commit
aaae1445d1
@ -19,17 +19,15 @@ buildGoModule rec {
|
||||
|
||||
excludedPackages = [ "docs/node-mixin" ];
|
||||
|
||||
buildFlagsArray = let
|
||||
goPackagePath = "github.com/prometheus/node_exporter";
|
||||
in ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X github.com/prometheus/common/version.Version=${version}
|
||||
-X github.com/prometheus/common/version.Revision=${rev}
|
||||
-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
|
||||
'';
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/prometheus/common/version.Version=${version}"
|
||||
"-X github.com/prometheus/common/version.Revision=${rev}"
|
||||
"-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"
|
||||
];
|
||||
|
||||
passthru.tests = { inherit (nixosTests.prometheus-exporters) node; };
|
||||
|
||||
@ -38,6 +36,5 @@ buildGoModule rec {
|
||||
homepage = "https://github.com/prometheus/node_exporter";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ benley fpletz globin Frostman ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user