gitea: normalise derivation format using nixpkgs-fmt
This commit is contained in:
parent
6459ab51c8
commit
b43933666f
1 changed files with 20 additions and 11 deletions
|
@ -1,5 +1,12 @@
|
|||
{ lib, buildGoPackage, fetchurl, makeWrapper
|
||||
, git, bash, gzip, openssh, pam
|
||||
{ lib
|
||||
, buildGoPackage
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, git
|
||||
, bash
|
||||
, gzip
|
||||
, openssh
|
||||
, pam
|
||||
, sqliteSupport ? true
|
||||
, pamSupport ? true
|
||||
, nixosTests
|
||||
|
@ -37,16 +44,18 @@ buildGoPackage rec {
|
|||
|
||||
buildInputs = optional pamSupport pam;
|
||||
|
||||
preBuild = let
|
||||
tags = optional pamSupport "pam"
|
||||
preBuild =
|
||||
let
|
||||
tags = optional pamSupport "pam"
|
||||
++ optional sqliteSupport "sqlite sqlite_unlock_notify";
|
||||
tagsString = concatStringsSep " " tags;
|
||||
in ''
|
||||
export buildFlagsArray=(
|
||||
-tags="${tagsString}"
|
||||
-ldflags='-X "main.Version=${version}" -X "main.Tags=${tagsString}"'
|
||||
)
|
||||
'';
|
||||
tagsString = concatStringsSep " " tags;
|
||||
in
|
||||
''
|
||||
export buildFlagsArray=(
|
||||
-tags="${tagsString}"
|
||||
-ldflags='-X "main.Version=${version}" -X "main.Tags=${tagsString}"'
|
||||
)
|
||||
'';
|
||||
|
||||
outputs = [ "out" "data" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue