gogs: add PAM support

This commit is contained in:
Sean Haugh 2018-12-22 18:52:39 -06:00
parent 9406f240a7
commit fb7770b843

View File

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