diff options
author | Sean Haugh <sean@lfo.team> | 2018-12-22 18:52:39 -0600 |
---|---|---|
committer | Sean Haugh <sean@lfo.team> | 2018-12-22 18:52:39 -0600 |
commit | fb7770b8439521c2a6aede7d4162c32d86c2659d (patch) | |
tree | 70ffe5f031128c6a319819c5edc71e9dedb1032b /pkgs/applications/version-management/gogs | |
parent | 9406f240a7b5ed68e8e633b8c764cfd69c470696 (diff) |
gogs: add PAM support
Diffstat (limited to 'pkgs/applications/version-management/gogs')
-rw-r--r-- | pkgs/applications/version-management/gogs/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/applications/version-management/gogs/default.nix b/pkgs/applications/version-management/gogs/default.nix index 56e4113689613..2f5230b6d29d7 100644 --- a/pkgs/applications/version-management/gogs/default.nix +++ b/pkgs/applications/version-management/gogs/default.nix @@ -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" ]; |