depot/third_party/nixpkgs/pkgs/by-name/so/soju/package.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

67 lines
1.6 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitea,
installShellFiles,
scdoc,
nixosTests,
}:
buildGoModule rec {
pname = "soju";
version = "0.8.2";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "emersion";
repo = "soju";
rev = "v${version}";
hash = "sha256-zJj9y3llJOijmx7+C5NOzEpIG/SEeg+ZhWtLPQ/iabY=";
};
vendorHash = "sha256-E/9a8GCEb/0Xto6cgH9R4WWdaoo/nwb6kcFdoEeMUps=";
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";
};
}