prometheus.node-exporter: cleanup

This commit is contained in:
Sandro Jäckel 2021-07-29 15:09:02 +02:00
parent a2758d5a99
commit aaae1445d1
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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;
};
}