mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
68 lines
1.6 KiB
Nix
68 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";
|
|
};
|
|
}
|