nixpkgs/pkgs/by-name/so/soju/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.6 KiB
Nix
Raw Normal View History

2024-07-21 11:07:50 +00:00
{
lib,
buildGoModule,
fetchFromGitea,
installShellFiles,
scdoc,
nixosTests,
2022-09-17 10:10:32 +00:00
}:
2021-05-20 15:28:20 +00:00
buildGoModule rec {
pname = "soju";
2024-07-21 11:06:52 +00:00
version = "0.8.1";
2021-05-20 15:28:20 +00:00
2024-07-21 11:06:52 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "emersion";
2021-05-20 15:28:20 +00:00
repo = "soju";
rev = "v${version}";
2024-07-21 11:06:52 +00:00
hash = "sha256-Zhqmek7dvuyMb35XkAHXUaSiQZaGgGWtM09Dj84DDIM=";
2021-05-20 15:28:20 +00:00
};
2024-07-21 11:06:52 +00:00
vendorHash = "sha256-t3jupiEuxWDFMfBiQ07il7lnmqG6zrV68lRNH1Gts4k=";
2021-05-20 15:28:20 +00:00
nativeBuildInputs = [
installShellFiles
2022-09-17 10:10:32 +00:00
scdoc
2021-05-20 15:28:20 +00:00
];
2024-07-21 11:06:52 +00:00
ldflags = [
"-s"
"-w"
"-X codeberg.org/emersion/soju/config.DefaultPath=/etc/soju/config"
"-X codeberg.org/emersion/soju/config.DefaultUnixAdminPath=/run/soju/admin"
];
2022-09-17 10:10:32 +00:00
postBuild = ''
2023-09-23 21:47:17 +00:00
make doc/soju.1 doc/sojuctl.1
2022-09-17 10:10:32 +00:00
'';
2024-07-21 11:06:52 +00:00
checkFlags = [ "-skip TestPostgresMigrations" ];
2021-05-20 15:28:20 +00:00
postInstall = ''
2023-09-23 21:47:17 +00:00
installManPage doc/soju.1 doc/sojuctl.1
2021-05-20 15:28:20 +00:00
'';
2024-07-21 11:06:52 +00:00
passthru.tests.soju = nixosTests.soju;
2022-09-17 10:10:32 +00:00
2021-05-20 15:28:20 +00:00
meta = with lib; {
description = "User-friendly IRC bouncer";
2022-09-17 10:10:32 +00:00
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.
'';
2021-05-20 15:28:20 +00:00
homepage = "https://soju.im";
2024-07-21 11:06:52 +00:00
changelog = "https://codeberg.org/emersion/soju/releases/tag/${src.rev}";
2021-05-20 15:28:20 +00:00
license = licenses.agpl3Only;
2024-07-21 11:07:50 +00:00
maintainers = with maintainers; [
azahi
malte-v
jtbx
];
2024-07-21 11:06:52 +00:00
mainProgram = "sojuctl";
2021-05-20 15:28:20 +00:00
};
}