gitea: add PAM support
This commit is contained in:
parent
5747c7114e
commit
9406f240a7
|
@ -1,6 +1,7 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper
|
||||
, git, bash, gzip, openssh
|
||||
, git, bash, gzip, openssh, pam
|
||||
, sqliteSupport ? true
|
||||
, pamSupport ? true
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
@ -31,9 +32,11 @@ buildGoPackage rec {
|
|||
substituteInPlace modules/setting/setting.go --subst-var data
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ makeWrapper ]
|
||||
++ optional pamSupport pam;
|
||||
|
||||
buildFlags = optional sqliteSupport "-tags sqlite";
|
||||
buildFlags = optional sqliteSupport "-tags sqlite"
|
||||
++ optional pamSupport "-tags pam";
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X=main.Version=${version}
|
||||
|
|
Loading…
Reference in New Issue