gogs: add PAM support
This commit is contained in:
parent
9406f240a7
commit
fb7770b843
@ -1,6 +1,7 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper
|
||||
, git, bash, gzip, openssh
|
||||
, git, bash, gzip, openssh, pam
|
||||
, sqliteSupport ? true
|
||||
, pamSupport ? true
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@ -23,9 +24,11 @@ buildGoPackage rec {
|
||||
substituteInPlace pkg/setting/setting.go --subst-var data
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ makeWrapper ]
|
||||
++ optional pamSupport pam;
|
||||
|
||||
buildFlags = optionalString sqliteSupport "-tags sqlite";
|
||||
buildFlags = optional sqliteSupport "-tags sqlite"
|
||||
++ optional pamSupport "-tags pam";
|
||||
|
||||
outputs = [ "bin" "out" "data" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user