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-07-15 17:15:38 +00:00
|
|
|
version = "0.6.2";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~emersion";
|
|
|
|
repo = "soju";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-Icz6oIXLnLe75zuB8Q862I1ado5GpGZBJezrH7F7EJs=";
|
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
|
|
|
|
|
|
|
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 = ''
|
2023-10-09 19:29:22 +00:00
|
|
|
make doc/soju.1 doc/sojuctl.1
|
2022-09-22 12:36:57 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postInstall = ''
|
2023-10-09 19:29:22 +00:00
|
|
|
installManPage doc/soju.1 doc/sojuctl.1
|
2021-05-20 23:08:51 +00:00
|
|
|
'';
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
preCheck = ''
|
|
|
|
# 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
|
|
|
};
|
|
|
|
}
|