mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
parent
f7ad229b11
commit
0431a90dd6
@ -1,4 +1,8 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{
|
||||||
|
lib,
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "phlare";
|
pname = "phlare";
|
||||||
@ -14,10 +18,13 @@ buildGoModule rec {
|
|||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
vendorHash = "sha256-l7+iDT9GAP9BX+xKvnx57iVF8wCM1YyHwq6dD9PbTDI=";
|
vendorHash = "sha256-l7+iDT9GAP9BX+xKvnx57iVF8wCM1YyHwq6dD9PbTDI=";
|
||||||
|
|
||||||
ldflags = let
|
ldflags =
|
||||||
|
let
|
||||||
prefix = "github.com/grafana/phlare/pkg/util/build";
|
prefix = "github.com/grafana/phlare/pkg/util/build";
|
||||||
in [
|
in
|
||||||
"-s" "-w"
|
[
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
# https://github.com/grafana/phlare/blob/v0.6.1/Makefile#L32
|
# https://github.com/grafana/phlare/blob/v0.6.1/Makefile#L32
|
||||||
"-X ${prefix}.Version=${version}"
|
"-X ${prefix}.Version=${version}"
|
||||||
"-X ${prefix}.Branch=v${version}"
|
"-X ${prefix}.Branch=v${version}"
|
||||||
|
Loading…
Reference in New Issue
Block a user