2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, installShellFiles
|
|
|
|
, scdoc
|
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "soju";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.6.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~emersion";
|
|
|
|
repo = "soju";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-e3yA8gXuLxRzJIQQIjhajIOWVtikd+gNVxbhzfy56b0=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = "sha256-iT/QMm6RM6kvw69Az+aLTtBuaCX7ELAiYlj5wXAtBd4=";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/soju"
|
|
|
|
"cmd/sojuctl"
|
2022-09-22 12:36:57 +00:00
|
|
|
"contrib/migrate-db"
|
|
|
|
"contrib/znc-import"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
2022-09-22 12:36:57 +00:00
|
|
|
scdoc
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make doc/soju.1
|
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage doc/soju.1
|
|
|
|
'';
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
preCheck = ''
|
|
|
|
# Test all targets.
|
|
|
|
unset subPackages
|
|
|
|
|
|
|
|
# Disable a test that requires an additional service.
|
|
|
|
rm database/postgres_test.go
|
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A user-friendly IRC bouncer";
|
2022-09-22 12:36:57 +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 23:08:51 +00:00
|
|
|
homepage = "https://soju.im";
|
2022-09-22 12:36:57 +00:00
|
|
|
changelog = "https://git.sr.ht/~emersion/soju/refs/${src.rev}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.agpl3Only;
|
2023-02-09 11:40:11 +00:00
|
|
|
maintainers = with maintainers; [ azahi malte-v ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|