depot/third_party/nixpkgs/pkgs/by-name/so/soju/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

67 lines
1.6 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitea,
installShellFiles,
scdoc,
nixosTests,
}:
buildGoModule rec {
pname = "soju";
version = "0.8.1";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "emersion";
repo = "soju";
rev = "v${version}";
hash = "sha256-Zhqmek7dvuyMb35XkAHXUaSiQZaGgGWtM09Dj84DDIM=";
};
vendorHash = "sha256-t3jupiEuxWDFMfBiQ07il7lnmqG6zrV68lRNH1Gts4k=";
nativeBuildInputs = [
installShellFiles
scdoc
];
ldflags = [
"-s"
"-w"
"-X codeberg.org/emersion/soju/config.DefaultPath=/etc/soju/config"
"-X codeberg.org/emersion/soju/config.DefaultUnixAdminPath=/run/soju/admin"
];
postBuild = ''
make doc/soju.1 doc/sojuctl.1
'';
checkFlags = [ "-skip TestPostgresMigrations" ];
postInstall = ''
installManPage doc/soju.1 doc/sojuctl.1
'';
passthru.tests.soju = nixosTests.soju;
meta = with lib; {
description = "User-friendly IRC bouncer";
longDescription = ''
soju is a user-friendly IRC bouncer. soju connects to upstream IRC servers
on behalf of the user to provide extra functionality. soju supports many
features such as multiple users, numerous IRCv3 extensions, chat history
playback and detached channels. It is well-suited for both small and large
deployments.
'';
homepage = "https://soju.im";
changelog = "https://codeberg.org/emersion/soju/releases/tag/${src.rev}";
license = licenses.agpl3Only;
maintainers = with maintainers; [
azahi
malte-v
jtbx
];
mainProgram = "sojuctl";
};
}