gogs: remove 'with lib;'

This commit is contained in:
Felix Buehler 2024-08-13 22:06:28 +02:00 committed by Valentin Gagarin
parent bf74256b20
commit 878b166cfa

View File

@ -4,8 +4,6 @@
, pamSupport ? true
}:
with lib;
buildGoModule rec {
pname = "gogs";
version = "0.13.0";
@ -27,19 +25,19 @@ buildGoModule rec {
nativeBuildInputs = [ makeWrapper openssh ];
buildInputs = optional pamSupport pam;
buildInputs = lib.optional pamSupport pam;
tags =
( optional sqliteSupport "sqlite"
++ optional pamSupport "pam");
( lib.optional sqliteSupport "sqlite"
++ lib.optional pamSupport "pam");
postInstall = ''
wrapProgram $out/bin/gogs \
--prefix PATH : ${makeBinPath [ bash git gzip openssh ]}
--prefix PATH : ${lib.makeBinPath [ bash git gzip openssh ]}
'';
meta = {
meta = with lib; {
description = "Painless self-hosted Git service";
homepage = "https://gogs.io";
license = licenses.mit;