gitea: add PAM support
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user