depot/pkgs/by-name/so/soju/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00: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";
};
}