mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
treewide: buildFlagsArray -> ldflags
This commit is contained in:
parent
eada59b86b
commit
13ea123c74
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags= -s -w -X=main.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Render markdown on the CLI, with pizzazz!";
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-YcAKl4keizkbgQLAZGiCG3CGpNTNad8EvOJEXLX2s0s=";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/zyedidia/micro/v2/internal/util.Version=${version} -X github.com/zyedidia/micro/v2/internal/util.CommitHash=${src.rev}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/zyedidia/micro/v2/internal/util.Version=${version}" "-X github.com/zyedidia/micro/v2/internal/util.CommitHash=${src.rev}" ];
|
||||
|
||||
postInstall = ''
|
||||
installManPage assets/packaging/micro.1
|
||||
|
|
|
@ -20,7 +20,7 @@ in buildGoModule {
|
|||
sha256 = sha256;
|
||||
};
|
||||
|
||||
buildFlagsArray = "-ldflags=-X main.version=${humioCtlVersion}";
|
||||
ldflags = [ "-X main.version=${humioCtlVersion}" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "0avnskay23mpl3qkyf1h75rr7szpsxis2bj5pplhwf8q8q0212xf";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev} -X main.date=unknown" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" "-X main.date=unknown" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags= -s -w -X=main.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Manage your charm account on the CLI";
|
||||
|
|
|
@ -24,11 +24,11 @@ buildGoModule rec {
|
|||
# The other variables are set so that the output of dstask version shows the
|
||||
# git ref and the release version from github.
|
||||
# Ref <https://github.com/NixOS/nixpkgs/pull/87383#discussion_r432097657>
|
||||
buildFlagsArray = [ ''
|
||||
-ldflags=-w -s
|
||||
-X "github.com/naggie/dstask.VERSION=${version}"
|
||||
-X "github.com/naggie/dstask.GIT_COMMIT=v${version}"
|
||||
'' ];
|
||||
ldflags = [
|
||||
"-w" "-s"
|
||||
"-X github.com/naggie/dstask.VERSION=${version}"
|
||||
"-X github.com/naggie/dstask.GIT_COMMIT=v${version}"
|
||||
];
|
||||
|
||||
subPackages = [ "cmd/dstask.go" ];
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ buildGoModule rec {
|
|||
|
||||
buildInputs = [ sqlite ];
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-s -w -X github.com/manojkarthick/expenses/cmd.Version=${version}"
|
||||
ldflags = [
|
||||
"-s" "-w" "-X github.com/manojkarthick/expenses/cmd.Version=${version}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -21,7 +21,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = "-ldflags=-X main.Version=${version}";
|
||||
ldflags = [ "-X main.Version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CloudFlare Argo Tunnel daemon (and DNS-over-HTTPS client)";
|
||||
|
|
|
@ -22,11 +22,10 @@ buildGoModule rec {
|
|||
packr
|
||||
'';
|
||||
|
||||
buildFlagsArray =
|
||||
ldflags =
|
||||
let package_url = "github.com/argoproj/argo-cd/v2/common"; in
|
||||
[
|
||||
"-ldflags="
|
||||
"-s -w"
|
||||
"-s" "-w"
|
||||
"-X ${package_url}.version=${version}"
|
||||
"-X ${package_url}.buildDate=unknown"
|
||||
"-X ${package_url}.gitCommit=${commit}"
|
||||
|
|
|
@ -25,8 +25,7 @@ buildGoModule rec {
|
|||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X code.cloudfoundry.org/cli/version.binaryBuildDate=1970-01-01"
|
||||
|
|
|
@ -28,7 +28,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/flux" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.VERSION=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
|
||||
|
||||
postUnpack = ''
|
||||
cp -r ${manifests} source/cmd/flux/manifests
|
||||
|
|
|
@ -19,7 +19,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/fluxctl" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
postInstall = ''
|
||||
for shell in bash fish zsh; do
|
||||
|
|
|
@ -19,7 +19,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/helmfile \
|
||||
|
|
|
@ -22,10 +22,9 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X github.com/xetys/hetzner-kube/cmd.version=${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-X github.com/xetys/hetzner-kube/cmd.version=${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
|
|
|
@ -17,14 +17,14 @@ buildGoModule rec {
|
|||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# Bundle release metadata
|
||||
buildFlagsArray = let
|
||||
ldflags = let
|
||||
attrs = [
|
||||
"istio.io/pkg/version.buildVersion=${version}"
|
||||
"istio.io/pkg/version.buildStatus=Nix"
|
||||
"istio.io/pkg/version.buildTag=${version}"
|
||||
"istio.io/pkg/version.buildHub=docker.io/istio"
|
||||
];
|
||||
in ["-ldflags=-s -w ${lib.concatMapStringsSep " " (attr: "-X ${attr}") attrs}"];
|
||||
in ["-s" "-w" "${lib.concatMapStringsSep " " (attr: "-X ${attr}") attrs}"];
|
||||
|
||||
subPackages = [ "istioctl/cmd/istioctl" ];
|
||||
|
||||
|
|
|
@ -19,13 +19,12 @@ buildGoModule rec {
|
|||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X github.com/jenkins-x/jx/pkg/version.Version=${version}
|
||||
-X github.com/jenkins-x/jx/pkg/version.Revision=${src.rev}
|
||||
-X github.com/jenkins-x/jx/pkg/version.GitTreeState=clean
|
||||
'';
|
||||
ldflags = [
|
||||
"-s -w"
|
||||
"-X github.com/jenkins-x/jx/pkg/version.Version=${version}"
|
||||
"-X github.com/jenkins-x/jx/pkg/version.Revision=${src.rev}"
|
||||
"-X github.com/jenkins-x/jx/pkg/version.GitTreeState=clean"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
for shell in bash zsh; do
|
||||
|
|
|
@ -11,12 +11,11 @@ buildGoModule rec {
|
|||
sha256 = "sha256-ws5JC2/WkgwxKwYtP9xtFELRhztzL6tNSvopyeC6H0Q=";
|
||||
};
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X github.com/derailed/k9s/cmd.version=${version}
|
||||
-X github.com/derailed/k9s/cmd.commit=${src.rev}
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X github.com/derailed/k9s/cmd.version=${version}"
|
||||
"-X github.com/derailed/k9s/cmd.commit=${src.rev}"
|
||||
];
|
||||
|
||||
vendorSha256 = "sha256-T9khJeg5XPhVyUiu4gEEHZR6RgJF4P8LYFycqJglms8=";
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/GoogleContainerTools/kpt/run.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/GoogleContainerTools/kpt/run.version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A toolkit to help you manage, manipulate, customize, and apply Kubernetes Resource configuration data files";
|
||||
|
|
|
@ -13,11 +13,10 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-vJfTf9gD/qrsPAfJeMYLjGa90mYLOshgDehv2Fcl6xM=";
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X main.version=${version}
|
||||
-X main.goVersion=${lib.getVersion go}
|
||||
'';
|
||||
ldflags = [
|
||||
"-X main.version=${version}"
|
||||
"-X main.goVersion=${lib.getVersion go}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Kubernetes credential plugin implementing Azure authentication";
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/kubeseal" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.VERSION=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Kubernetes controller and tool for one-way encrypted Secrets";
|
||||
|
|
|
@ -16,10 +16,10 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/kubectl-kuttl" ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=-s -w
|
||||
-X github.com/kudobuilder/kuttl/pkg/version.gitVersion=${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X github.com/kudobuilder/kuttl/pkg/version.gitVersion=${version}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "The KUbernetes Test TooL (KUTTL) provides a declarative approach to testing production-grade Kubernetes operators";
|
||||
|
|
|
@ -11,11 +11,11 @@ buildGoModule rec {
|
|||
sha256 = "sha256-eVYRbMijOEa+DNCm4w/+WVrTI9607NF9/l5YKkXJuFs=";
|
||||
};
|
||||
|
||||
buildFlagsArray = let
|
||||
ldflags = let
|
||||
multus = "gopkg.in/intel/multus-cni.v3/pkg/multus";
|
||||
commit = "f6298a3a294a79f9fbda0b8f175e521799d5f8d7";
|
||||
in [
|
||||
"-ldflags=-s -w -X '${multus}.version=v${version}' -X '${multus}.commit=${commit}'"
|
||||
"-s" "-w" "-X ${multus}.version=v${version}" "-X ${multus}.commit=${commit}"
|
||||
];
|
||||
|
||||
preInstall = ''
|
||||
|
|
|
@ -11,11 +11,10 @@ buildGoModule rec {
|
|||
sha256 = "sha256-oft1zLLd5TP8S9GMjp5kYaoPoOYnbhJwL2wBerkhp+c=";
|
||||
};
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X github.com/derailed/popeye/cmd.version=${version}
|
||||
-X github.com/derailed/popeye/cmd.commit=${version}
|
||||
ldflags = ''
|
||||
"-s" "-w"
|
||||
"-X github.com/derailed/popeye/cmd.version=${version}"
|
||||
"-X github.com/derailed/popeye/cmd.commit=${version}"
|
||||
'';
|
||||
|
||||
vendorSha256 = "sha256-vUUDLMicop5QzZmAHi5qrc0hx8oV2xWNFHvCWioLhl8=";
|
||||
|
|
|
@ -15,12 +15,11 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X github.com/splunk/qbec/internal/commands.version=${version}
|
||||
-X github.com/splunk/qbec/internal/commands.commit=${src.rev}
|
||||
-X github.com/splunk/qbec/internal/commands.goVersion=${lib.getVersion go}
|
||||
ldflags = ''
|
||||
"-s" "-w"
|
||||
"-X github.com/splunk/qbec/internal/commands.version=${version}"
|
||||
"-X github.com/splunk/qbec/internal/commands.commit=${src.rev}"
|
||||
"-X github.com/splunk/qbec/internal/commands.goVersion=${lib.getVersion go}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -7,14 +7,14 @@ buildGoModule rec {
|
|||
pname = "sonobuoy";
|
||||
version = "0.53.2"; # Do not forget to update `rev` above
|
||||
|
||||
buildFlagsArray =
|
||||
ldflags =
|
||||
let t = "github.com/vmware-tanzu/sonobuoy";
|
||||
in ''
|
||||
-ldflags=
|
||||
-s -X ${t}/pkg/buildinfo.Version=v${version}
|
||||
-X ${t}/pkg/buildinfo.GitSHA=${rev}
|
||||
-X ${t}/pkg/buildDate=unknown
|
||||
'';
|
||||
in [
|
||||
"-s"
|
||||
"-X ${t}/pkg/buildinfo.Version=v${version}"
|
||||
"-X ${t}/pkg/buildinfo.GitSHA=${rev}"
|
||||
"-X ${t}/pkg/buildDate=unknown"
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "sha256-8bUZsknG1Z2TKWwtuJtnauK8ibikGphl3oiLXT3PZzY=";
|
||||
|
|
|
@ -19,8 +19,8 @@ buildGoModule rec {
|
|||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildFlagsArray =
|
||||
[ "-ldflags=-s -w -X github.com/stern/stern/cmd.version=${version}" ];
|
||||
ldflags =
|
||||
[ "-s" "-w" "-X github.com/stern/stern/cmd.version=${version}" ];
|
||||
|
||||
postInstall =
|
||||
let stern = if isCrossBuild then buildPackages.stern else "$out";
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/tk" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -extldflags \"-static\" -X github.com/grafana/tanka/pkg/tanka.CURRENT_VERSION=v${version}" ];
|
||||
ldflags = [ "-s" "-w" "-extldflags '-static'" "-X github.com/grafana/tanka/pkg/tanka.CURRENT_VERSION=v${version}" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/tilt" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-X main.version=${version}" ];
|
||||
ldflags = [ "-X main.version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Local development tool to manage your developer instance when your team deploys to Kubernetes in production";
|
||||
|
|
|
@ -14,12 +14,11 @@ buildGoModule rec {
|
|||
sha256 = "sha256-oFDTjpcwlvSiAROG/EKYRCD+qKyZXu1gKotBcD0dfvk=";
|
||||
};
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=${version}
|
||||
-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitSHA=${commit}
|
||||
-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitTreeState=clean
|
||||
ldflags = ''
|
||||
"-s" "-w"
|
||||
"-X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=${version}"
|
||||
"-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitSHA=${commit}"
|
||||
"-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitTreeState=clean"
|
||||
'';
|
||||
|
||||
vendorSha256 = "sha256-ypgrdv6nVW+AAwyVsiROXs6jGgDTodGrGqiT2s5elOU=";
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w" ];
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Synchronize your DNS to multiple providers from a simple DSL";
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "NextDNS DNS/53 to DoH Proxy";
|
||||
|
|
|
@ -22,7 +22,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "18z3vwcwkyj6hcvl35qmj034237h9l18dvcbx1hxry7qdwv807c9";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.AgentVersion=v${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.AgentVersion=v${version}" ];
|
||||
|
||||
passthru = {
|
||||
updateScript = genericUpdater {
|
||||
|
|
|
@ -16,7 +16,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Quickly clone an entire org/users repositories into one directory";
|
||||
|
|
|
@ -15,10 +15,9 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X=main.Version=${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-X=main.Version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -m 444 -D ${src}/misc/zsh/_ghq $out/share/zsh/site-functions/_ghq
|
||||
|
|
|
@ -16,12 +16,11 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X github.com/MichaelMure/git-bug/commands.GitCommit=${rev}
|
||||
-X github.com/MichaelMure/git-bug/commands.GitLastTag=${version}
|
||||
-X github.com/MichaelMure/git-bug/commands.GitExactTag=${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-X github.com/MichaelMure/git-bug/commands.GitCommit=${rev}"
|
||||
"-X github.com/MichaelMure/git-bug/commands.GitLastTag=${version}"
|
||||
"-X github.com/MichaelMure/git-bug/commands.GitExactTag=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -D -m 0644 misc/bash_completion/git-bug "$out/share/bash-completion/completions/git-bug"
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-jIq+oacyT71m78iMZwWOBsBVAY/WxgyH9zRr8GiMGTU=";
|
||||
|
||||
buildFlagsArray = [ "-ldflags= -s -w -X=main.Version=v${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X=main.Version=v${version}" ];
|
||||
|
||||
subPackages = [ "cmd/git-chglog" ];
|
||||
|
||||
|
@ -24,4 +24,3 @@ buildGoModule rec {
|
|||
maintainers = with maintainers; [ ldenefle ];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ buildGoModule rec {
|
|||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/lab --prefix PATH ":" "${lib.makeBinPath [ git xdg-utils ]}";
|
||||
|
|
|
@ -18,7 +18,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-gTObI0pmRUX6Eh5FVdt+5LbckyBuFq1Ly4oPZztazHQ=";
|
||||
buildInputs = [ git ];
|
||||
buildFlagsArray = "-ldflags=-X main.Version=${version}";
|
||||
ldflags = [ "-X main.Version=${version}" ];
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-idxElk4Sy7SE9G1OMRw8YH4o8orBa80qhBXPA+ar620=";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev} -X main.date=unknown" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" "-X main.date=unknown" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/vishen/go-chromecast";
|
||||
|
|
|
@ -11,8 +11,8 @@ buildGoModule rec {
|
|||
sha256 = "177fs3p2xzwjsffcxqqllx6wi6ghfyqbvfgn95v3q7a2993yqk4k";
|
||||
};
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-X github.com/containerd/containerd/version.Version=${version}"
|
||||
ldflags = [
|
||||
"-X github.com/containerd/containerd/version.Version=${version}"
|
||||
];
|
||||
|
||||
vendorSha256 = null;
|
||||
|
|
|
@ -16,7 +16,7 @@ buildGoModule rec {
|
|||
};
|
||||
|
||||
vendorSha256 = "17zpiyvf22skfcisflsp6pn56y6a793jcx89kw976fq2x5br1bz7";
|
||||
buildFlagsArray = [ "-ldflags=" "-s -w" ];
|
||||
ldflags = [ "-s" "-w" ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
|
|
|
@ -19,8 +19,8 @@ let
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-s -w -X github.com/arduino/arduino-cli/version.versionString=${version} -X github.com/arduino/arduino-cli/version.commit=unknown"
|
||||
ldflags = [
|
||||
"-s" "-w" "-X github.com/arduino/arduino-cli/version.versionString=${version}" "-X github.com/arduino/arduino-cli/version.commit=unknown"
|
||||
] ++ lib.optionals stdenv.isLinux [ "-extldflags '-static'" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.BazeliskVersion=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.BazeliskVersion=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A user-friendly launcher for Bazel";
|
||||
|
|
|
@ -21,7 +21,7 @@ buildGoModule rec {
|
|||
|
||||
excludedPackages = [ "generatetables" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.buildVersion=${version} -X main.buildScmRevision=${src.rev}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.buildVersion=${version}" "-X main.buildScmRevision=${src.rev}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tools for working with Google's bazel buildtool. Includes buildifier, buildozer, and unused_deps";
|
||||
|
|
|
@ -15,8 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
ldflags = [
|
||||
"-X github.com/magefile/mage/mage.commitHash=v${version}"
|
||||
"-X github.com/magefile/mage/mage.gitTag=v${version}"
|
||||
"-X github.com/magefile/mage/mage.timestamp=1970-01-01T00:00:00Z"
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/pack" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/buildpacks/pack.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/buildpacks/pack.Version=${version}" ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --bash --name pack.bash $(PACK_HOME=$PWD $out/bin/pack completion --shell bash)
|
||||
|
|
|
@ -19,9 +19,9 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "internal" ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=-X github.com/coreos/butane/internal/version.Raw=v${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-X github.com/coreos/butane/internal/version.Raw=v${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/{internal,butane}
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-C9UGpm8JBLQpSFQkvib5Bmn3J88LxUNt4ELJXL4ZQ80=";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.VERSION=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
|
|
@ -15,8 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/open-policy-agent/conftest/internal/commands.version=${version}"
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/bk" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.VERSION=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command line interface for Buildkite";
|
||||
|
|
|
@ -17,10 +17,9 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "fly" ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X github.com/concourse/concourse.Version=${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-X github.com/concourse/concourse.Version=${version}"
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
mkdir -p $out/share/{bash-completion/completions,zsh/site-functions}
|
||||
|
|
|
@ -16,8 +16,8 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/cue" ];
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-s -w -X cuelang.org/go/cmd/cue/cmd.version=${version}"
|
||||
ldflags = [
|
||||
"-s" "-w" "-X cuelang.org/go/cmd/cue/cmd.version=${version}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -19,7 +19,7 @@ buildGoModule rec {
|
|||
|
||||
buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool for exploring each layer in a docker image";
|
||||
|
|
|
@ -13,12 +13,11 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-gydhh/EMSuE/beo+A2CRDdDnQGT6DMjMwthylT339I4=";
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X main.Version=v${version}
|
||||
-X main.DefaultBuildkitdImage=earthly/buildkitd:v${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X main.Version=v${version}"
|
||||
"-X main.DefaultBuildkitdImage=earthly/buildkitd:v${version}"
|
||||
];
|
||||
|
||||
BUILDTAGS = "dfrunmount dfrunsecurity dfsecrets dfssh dfrunnetwork";
|
||||
preBuild = ''
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-1ujJuhK7pm/A1Dd+Wm9dtc65mx9pwLBWMWwEJnbja8s=";
|
||||
|
||||
buildFlagsArray = "-ldflags=-s -w -X info.Version=${version}";
|
||||
ldflags = [ "-s" "-w" "-X info.Version=${version}" ];
|
||||
|
||||
subPackages = [ "cmd/fission-cli" ];
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-X main.buildVersion=${version} -X main.buildCommit=${version} -X main.buildDate=1970-01-01"
|
||||
ldflags = [
|
||||
"-X main.buildVersion=${version}" "-X main.buildCommit=${version}" "-X main.buildDate=1970-01-01"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -26,4 +26,3 @@ buildGoModule rec {
|
|||
maintainers = with maintainers; [ doronbehar ];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ buildGoModule rec {
|
|||
sha256 = "sha256-l+ngvmTb9yVgQYT+OeaVd0zz/xNZeXWrjMpVkMpbQIw=";
|
||||
};
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-s -w -X main.version=${version}"
|
||||
ldflags = [
|
||||
"-s" "-w" "-X main.version=${version}"
|
||||
];
|
||||
|
||||
vendorSha256 = "sha256-hn222ifKRYbASAHBJyMTCDwhykf2Jg9IqIUlK/GabJA=";
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/swagger" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/go-swagger/go-swagger/cmd/swagger/commands.Version=${version} -X github.com/go-swagger/go-swagger/cmd/swagger/commands.Commit=${src.rev}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/go-swagger/go-swagger/cmd/swagger/commands.Version=${version}" "-X github.com/go-swagger/go-swagger/cmd/swagger/commands.Commit=${src.rev}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
|
||||
|
|
|
@ -17,8 +17,8 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/task" ];
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-s -w -X main.version=${version}"
|
||||
ldflags = [
|
||||
"-s" "-w" "-X main.version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
|
|
@ -19,8 +19,7 @@ buildGoModule rec {
|
|||
rm net/net_test.go
|
||||
'';
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/${owner}/${pname}/v3/version.Version=${rev}"
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version} -X main.GitTag=${src.rev} -X main.BuildDate=unknown" ];
|
||||
ldflags = [ "-s" "-w" "-X main.Version=${version}" "-X main.GitTag=${src.rev}" "-X main.BuildDate=unknown" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/securego/gosec";
|
||||
|
@ -27,4 +27,3 @@ buildGoModule rec {
|
|||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/hetznercloud/cli/cli.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/hetznercloud/cli/cli.Version=${version}" ];
|
||||
|
||||
postInstall = ''
|
||||
for shell in bash zsh; do
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/jb" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A jsonnet package manager";
|
||||
|
|
|
@ -13,9 +13,9 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "0jzry4znq4kcl6i9jcawilyjm8av1zxbml6nlr96v8x47ijxav5j";
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=-s -w -X=github.com/rikatz/kubepug/version.Version=${src.rev}
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}"
|
||||
];
|
||||
|
||||
subPackages = [ "cmd/kubepug.go" ];
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@ buildGoModule rec {
|
|||
# rev is the commit of the tag, mainly for kustomize version command output
|
||||
rev = "9e8e7a7fe99ec9fbf801463e8607928322fc5245";
|
||||
|
||||
buildFlagsArray = let t = "sigs.k8s.io/kustomize/api/provenance"; in
|
||||
''
|
||||
-ldflags=
|
||||
-s -X ${t}.version=${version}
|
||||
-X ${t}.gitCommit=${rev}
|
||||
'';
|
||||
ldflags = let t = "sigs.k8s.io/kustomize/api/provenance"; in
|
||||
[
|
||||
"-s"
|
||||
"-X ${t}.version=${version}"
|
||||
"-X ${t}.gitCommit=${rev}"
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kubernetes-sigs";
|
||||
|
|
|
@ -14,7 +14,7 @@ buildGoModule rec {
|
|||
vendorSha256 = null;
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-X main.version=${version} -X main.buildSource=nix" ];
|
||||
ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple terminal UI for git commands";
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/CircleCI-Public/circleci-cli/version.Version=${version} -X github.com/CircleCI-Public/circleci-cli/version.Commit=${src.rev} -X github.com/CircleCI-Public/circleci-cli/version.packageManager=nix" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/CircleCI-Public/circleci-cli/version.Version=${version}" "-X github.com/CircleCI-Public/circleci-cli/version.Commit=${src.rev}" "-X github.com/CircleCI-Public/circleci-cli/version.packageManager=nix" ];
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace data/data.go \
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "1c2mwhrj0xapc661z1nb6am4qq3rd1pvbvjaxikjyx95n0gs8gjk";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.commit=v${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kubernetes YAML to Terraform HCL converter";
|
||||
|
|
|
@ -15,9 +15,9 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=-s -w -X main.Version=v${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w" "-X main.Version=v${version}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/FiloSottile/mkcert";
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/reviewdog" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/reviewdog/reviewdog/commands.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/reviewdog/reviewdog/commands.Version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Automated code review tool integrated with any code analysis tools regardless of programming language";
|
||||
|
|
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/cycloidio/terracognita/cmd.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/cycloidio/terracognita/cmd.Version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Reads from existing Cloud Providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration";
|
||||
|
|
|
@ -11,8 +11,8 @@ buildGoModule rec {
|
|||
sha256 = "sha256-jl98LuEsGN40L9IfybJhLnbzoYP/XpwFVQnjrlmDL9A=";
|
||||
};
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-s -w -X main.version=${version} -X main.commitHash=${src.rev} -X main.date=19700101T000000"
|
||||
ldflags = [
|
||||
"-s" "-w" "-X main.version=${version}" "-X main.commitHash=${src.rev}" "-X main.date=19700101T000000"
|
||||
];
|
||||
|
||||
vendorSha256 = null;
|
||||
|
|
|
@ -15,13 +15,12 @@ buildGoModule rec {
|
|||
|
||||
subPackages = ["cmd/skaffold"];
|
||||
|
||||
buildFlagsArray = let t = "github.com/GoogleContainerTools/skaffold/pkg/skaffold"; in ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X ${t}/version.version=v${version}
|
||||
-X ${t}/version.gitCommit=${src.rev}
|
||||
-X ${t}/version.buildDate=unknown
|
||||
'';
|
||||
ldflags = let t = "github.com/GoogleContainerTools/skaffold/pkg/skaffold"; in [
|
||||
"-s" "-w"
|
||||
"-X ${t}/version.version=v${version}"
|
||||
"-X ${t}/version.gitCommit=${src.rev}"
|
||||
"-X ${t}/version.buildDate=unknown"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-wsgNrDnFXbpanEULEjf6OxOeMYmWzjE7vpVUB/UFNp8=";
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=-s -w -X=github.com/pulumi/tf2pulumi/version.Version=${src.rev}
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w" "-X=github.com/pulumi/tf2pulumi/version.Version=${src.rev}"
|
||||
];
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "0y0n9fsb85qlpf9slwsxzarmfi98asa4x04qp2r8pagl28l0i8wv";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert YAML <=> TOML <=> JSON <=> HCL";
|
||||
|
|
|
@ -21,7 +21,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/superfly/flyctl/flyctl.Version=${version} -X github.com/superfly/flyctl/flyctl.Commit=${src.rev} -X github.com/superfly/flyctl/flyctl.BuildDate=1970-01-01T00:00:00+0000 -X github.com/superfly/flyctl/flyctl.Environment=production" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/superfly/flyctl/flyctl.Version=${version}" "-X github.com/superfly/flyctl/flyctl.Commit=${src.rev}" "-X github.com/superfly/flyctl/flyctl.BuildDate=1970-01-01T00:00:00+0000" "-X github.com/superfly/flyctl/flyctl.Environment=production" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line tools for fly.io services";
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Minifiers for web formats";
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "1cldxykm9qj5rvyfafam45y5xj4f19700s2f9w7ndhxgfp9vahvz";
|
||||
|
||||
buildFlagsArray = "-ldflags=-X main.versionString=v${version}";
|
||||
ldflags = [ "-X main.versionString=v${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An S/MIME signing utility for macOS and Windows that is compatible with Git";
|
||||
|
|
|
@ -33,12 +33,11 @@ buildGoModule rec {
|
|||
|
||||
buildInputs = [ bzip2 lz4 rocksdb snappy zeromq zlib ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X github.com/trezor/blockbook/common.version=${version}
|
||||
-X github.com/trezor/blockbook/common.gitcommit=${commit}
|
||||
-X github.com/trezor/blockbook/common.buildDate=unknown
|
||||
'';
|
||||
ldflags = [
|
||||
"-X github.com/trezor/blockbook/common.version=${version}"
|
||||
"-X github.com/trezor/blockbook/common.gitcommit=${commit}"
|
||||
"-X github.com/trezor/blockbook/common.buildDate=unknown"
|
||||
];
|
||||
|
||||
preBuild = lib.optionalString stdenv.isDarwin ''
|
||||
ulimit -n 8192
|
||||
|
|
|
@ -17,8 +17,8 @@ buildGoModule rec {
|
|||
"cmd/dex"
|
||||
];
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-w -s -X github.com/dexidp/dex/version.Version=${src.rev}"
|
||||
ldflags = [
|
||||
"-w" "-s" "-X github.com/dexidp/dex/version.Version=${src.rev}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
|
|
@ -13,11 +13,11 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [''-ldflags=
|
||||
-X github.com/hasura/graphql-engine/cli/version.BuildVersion=${version}
|
||||
-s
|
||||
-w
|
||||
''];
|
||||
ldflags = [
|
||||
"-X github.com/hasura/graphql-engine/cli/version.BuildVersion=${version}"
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/{bash-completion/completions,zsh/site-functions}
|
||||
|
|
|
@ -25,7 +25,7 @@ buildGoModule rec {
|
|||
"cmd/pomerium-cli"
|
||||
];
|
||||
|
||||
buildFlagsArray = let
|
||||
ldflags = let
|
||||
# Set a variety of useful meta variables for stamping the build with.
|
||||
setVars = {
|
||||
Version = "v${version}";
|
||||
|
@ -35,7 +35,7 @@ buildGoModule rec {
|
|||
};
|
||||
varFlags = concatStringsSep " " (mapAttrsToList (name: value: "-X github.com/pomerium/pomerium/internal/version.${name}=${value}") setVars);
|
||||
in [
|
||||
"-ldflags=${varFlags}"
|
||||
"${varFlags}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-bxKEQaOubjRfLX+dMxVDzLOUInHykUdy9X8wvFE6Va4=";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/foxcpp/maddy.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/foxcpp/maddy.Version=${version}" ];
|
||||
|
||||
subPackages = [ "cmd/maddy" "cmd/maddyctl" ];
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ buildGoModule rec {
|
|||
sha256 = "sha256-u1ppwy+t2ewAH0/+R6e0Ja5A3PQG/lUy2b6kgcMVj8E=";
|
||||
};
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-s -w -X main.GitCommit=${version} -X main.GitBranch=${version} -X main.GitState=nixpkgs -X main.GitSummary=${version} -X main.Version=${version}"
|
||||
ldflags = [
|
||||
"-s" "-w" "-X main.GitCommit=${version}" "-X main.GitBranch=${version}" "-X main.GitState=nixpkgs" "-X main.GitSummary=${version}" "-X main.Version=${version}"
|
||||
];
|
||||
|
||||
vendorSha256 = "sha256-YmUiGsg2UZfV6SHEPwnbmWPhGQ5teV+we9MBaJyrJr4=";
|
||||
|
|
|
@ -22,9 +22,9 @@ in buildGoModule {
|
|||
go test $(go list ./... | grep -v client)
|
||||
''; # skip client tests as they require network access
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=-s -w -X miniflux.app/version.Version=${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w" "-X miniflux.app/version.Version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/miniflux.app $out/bin/miniflux
|
||||
|
|
|
@ -17,10 +17,9 @@ buildGoModule rec {
|
|||
export CGO_ENABLED=0
|
||||
'';
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w -extldflags '-static'
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w" "-extldflags '-static'"
|
||||
];
|
||||
|
||||
subPackages = [ "cmd/gobgpd" ];
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-VLG15IXS/fXFMTCJKEqGW6qZ9aOLPhazidVsOywG+w4=";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w" ];
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Alertmanager IRC Relay is a bot relaying Prometheus alerts to IRC";
|
||||
|
|
|
@ -15,7 +15,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-FMO+wNmjFFD9+/9mhNcyZftk8ryhwFXDZeEy/h5EMWc=";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/google/cadvisor/version.Version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/google/cadvisor/version.Version=${version}" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/{cmd,cadvisor}
|
||||
|
|
|
@ -11,10 +11,9 @@ buildGoModule rec {
|
|||
sha256 = "sha256-boEgCC3uWvJvb6VKpNhh6vHCfeE7oun5oneI2ITKh9g=";
|
||||
};
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X main.version=${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-X main.version=${version}"
|
||||
];
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
|
|
|
@ -43,9 +43,9 @@ buildGoModule rec {
|
|||
rm -r scripts/go
|
||||
'';
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=-s -w -X main.version=${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w" "-X main.version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
tar -xvf $srcStatic
|
||||
|
|
|
@ -19,11 +19,10 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X=main.version=${version}
|
||||
-X=main.gitcommit=v${version}
|
||||
'';
|
||||
ldflags = [
|
||||
"-X=main.version=${version}"
|
||||
"-X=main.gitcommit=v${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/mackerel-agent \
|
||||
|
|
|
@ -21,8 +21,8 @@ buildGoModule rec {
|
|||
go generate -x ./internal/vm/
|
||||
'';
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-X main.Version=${version}"
|
||||
ldflags = [
|
||||
"-X main.Version=${version}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -16,14 +16,13 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-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=master
|
||||
-X github.com/prometheus/common/version.BuildDate=19700101-00:00:00
|
||||
'';
|
||||
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=master"
|
||||
"-X github.com/prometheus/common/version.BuildDate=19700101-00:00:00"
|
||||
];
|
||||
|
||||
passthru.tests = { inherit (nixosTests.prometheus-exporters) artifactory; };
|
||||
|
||||
|
|
|
@ -14,14 +14,14 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "19785rfzlx8h0h8vmg0ghd40h3p4y6ikhgf8rd2qfj5f6qxfhrgv";
|
||||
|
||||
buildFlagsArray = let t = "github.com/prometheus/common/version"; in ''
|
||||
-ldflags=
|
||||
-s -w -X ${t}.Version=${version}
|
||||
-X ${t}.Revision=${rev}
|
||||
-X ${t}.Branch=unknown
|
||||
-X ${t}.BuildUser=nix@nixpkgs
|
||||
-X ${t}.BuildDate=unknown
|
||||
'';
|
||||
ldflags = let t = "github.com/prometheus/common/version"; in [
|
||||
"-s" "-w"
|
||||
"-X ${t}.Version=${version}"
|
||||
"-X ${t}.Revision=${rev}"
|
||||
"-X ${t}.Branch=unknown"
|
||||
"-X ${t}.BuildUser=nix@nixpkgs"
|
||||
"-X ${t}.BuildDate=unknown"
|
||||
];
|
||||
|
||||
# skips tests with external dependencies, e.g. on mysqld
|
||||
checkFlags = [ "-short" ];
|
||||
|
|
|
@ -16,7 +16,7 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-DFDTYT7UK1cYwGeCgeQcJmrCoqGPDzicusRPPUbH0Gs=";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/timescale/promscale/pkg/version.Version=${version} -X github.com/timescale/promscale/pkg/version.CommitHash=${src.rev}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/timescale/promscale/pkg/version.Version=${version}" "-X github.com/timescale/promscale/pkg/version.CommitHash=${src.rev}" ];
|
||||
|
||||
doCheck = false; # Requires access to a docker daemon
|
||||
doInstallCheck = true;
|
||||
|
|
|
@ -13,11 +13,10 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "11237959ikd7l5glkhfz0g55mbld2hq985b5crwb9bnimaly5lga";
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X main.BuildVersion=${version}
|
||||
-X main.BuildCommitSha=unknown
|
||||
-X main.BuildDate=unknown
|
||||
ldflags = ''
|
||||
"-X main.BuildVersion=${version}"
|
||||
"-X main.BuildCommitSha=unknown"
|
||||
"-X main.BuildDate=unknown"
|
||||
'';
|
||||
|
||||
# needs a redis server
|
||||
|
|
|
@ -8,7 +8,7 @@ buildGoModule rec {
|
|||
pname = "smokeping_prober";
|
||||
version = "${baseVersion}-g${commit}";
|
||||
|
||||
buildFlagsArray = let
|
||||
ldflags = let
|
||||
setVars = {
|
||||
Version = baseVersion;
|
||||
Revision = commit;
|
||||
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
};
|
||||
varFlags = lib.concatStringsSep " " (lib.mapAttrsToList (name: value: "-X github.com/prometheus/common/version.${name}=${value}") setVars);
|
||||
in [
|
||||
"-ldflags=${varFlags} -s -w"
|
||||
"${varFlags}" "-s" "-w"
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -20,13 +20,12 @@ let
|
|||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = let
|
||||
ldflags = let
|
||||
versionPkg = "github.com/sensu/sensu-go/version";
|
||||
in ''
|
||||
-ldflags=
|
||||
-X ${versionPkg}.Version=${version}
|
||||
-X ${versionPkg}.BuildSHA=${shortRev}
|
||||
'';
|
||||
in [
|
||||
"-X ${versionPkg}.Version=${version}"
|
||||
"-X ${versionPkg}.BuildSHA=${shortRev}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://sensu.io";
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue