diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2022-08-30 13:18:00 +0000 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2022-08-30 13:18:00 +0000 |
commit | 312b2eb1b8ca1ebae3039654f0bf7c1e93fbbc22 (patch) | |
tree | 0e569504a067f626ac670900238418c9e94ddc82 /pkgs/applications/misc | |
parent | 65847ae58b2e2b7eff42e66fbd7738d47054f55b (diff) |
hugo: add ldflags
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/hugo/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/misc/hugo/default.nix b/pkgs/applications/misc/hugo/default.nix index db6a88cebebd3..b2c177fda2d60 100644 --- a/pkgs/applications/misc/hugo/default.nix +++ b/pkgs/applications/misc/hugo/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles }: +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: buildGoModule rec { pname = "hugo"; @@ -23,6 +23,8 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles ]; + ldflags = [ "-s" "-w" "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=nixpkgs" ]; + postInstall = '' $out/bin/hugo gen man installManPage man/* |