gitea: normalise derivation format using nixpkgs-fmt

This commit is contained in:
Trolli Schmittlauch 2021-03-23 23:07:39 +01:00
parent 6459ab51c8
commit b43933666f

View file

@ -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" ];