diff --git a/pkgs/servers/monitoring/prometheus/pushgateway/default.nix b/pkgs/servers/monitoring/prometheus/pushgateway/default.nix index 1b0fcd7485e..5d21b53ab72 100644 --- a/pkgs/servers/monitoring/prometheus/pushgateway/default.nix +++ b/pkgs/servers/monitoring/prometheus/pushgateway/default.nix @@ -15,21 +15,24 @@ let self = buildGoPackage rec { }; buildInputs = [ - go-bindata.bin protobuf httprouter golang_protobuf_extensions prometheus.client_golang ]; + nativeBuildInputs = [ + go-bindata.bin + ]; + buildFlagsArray = '' -ldflags= - -X main.buildVersion ${rev} - -X main.buildRev ${rev} - -X main.buildBranch master - -X main.buildUser nix@nixpkgs - -X main.buildDate 20150101-00:00:00 - -X main.goVersion ${lib.getVersion go} + -X main.buildVersion=${rev} + -X main.buildRev=${rev} + -X main.buildBranch=master + -X main.buildUser=nix@nixpkgs + -X main.buildDate=20150101-00:00:00 + -X main.goVersion=${lib.getVersion go} ''; preBuild = ''