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";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.8.0";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~emersion";
|
|
|
|
repo = "soju";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-K7Dgc1HQ6+GnjraQNcK9LOFxUIoKKWro1mWKDZFwLiE=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-4Yl87Gk/HykjIyNpRfgthLf6b+v7kxmONIhYBWVXi0I=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ azahi malte-v jtbx ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|