mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 17:34:04 +00:00
Merge pull request #214002 from IndeedNotJames/gitea
gitea: fix build info
This commit is contained in:
commit
e28a23e228
@ -39,20 +39,15 @@ buildGoModule rec {
|
|||||||
|
|
||||||
buildInputs = lib.optional pamSupport pam;
|
buildInputs = lib.optional pamSupport pam;
|
||||||
|
|
||||||
preBuild =
|
tags = lib.optional pamSupport "pam"
|
||||||
let
|
++ lib.optionals sqliteSupport [ "sqlite" "sqlite_unlock_notify" ];
|
||||||
tags = lib.optional pamSupport "pam"
|
|
||||||
++ lib.optional sqliteSupport "sqlite sqlite_unlock_notify";
|
|
||||||
tagsString = lib.concatStringsSep " " tags;
|
|
||||||
in
|
|
||||||
''
|
|
||||||
export buildFlagsArray=(
|
|
||||||
-tags="${tagsString}"
|
|
||||||
-ldflags='-X "main.Version=${version}" -X "main.Tags=${tagsString}"'
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" ];
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X main.Version=${version}"
|
||||||
|
"-X 'main.Tags=${lib.concatStringsSep " " tags}'"
|
||||||
|
];
|
||||||
|
|
||||||
outputs = [ "out" "data" ];
|
outputs = [ "out" "data" ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user