soju: 0.4.0 -> 0.5.2

This commit is contained in:
Azat Bahawi 2022-09-17 13:10:32 +03:00
parent 3fda0f64a9
commit b1e862b4dd
No known key found for this signature in database
GPG Key ID: C8C6BDDB3847F72B

View File

@ -1,38 +1,65 @@
{ lib, buildGoModule, fetchFromSourcehut, installShellFiles, scdoc }: { lib
, buildGoModule
, fetchFromSourcehut
, installShellFiles
, scdoc
}:
buildGoModule rec { buildGoModule rec {
pname = "soju"; pname = "soju";
version = "0.4.0"; version = "0.5.2";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~emersion"; owner = "~emersion";
repo = "soju"; repo = "soju";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-4ixPEnSa1m52Hu1dzxMG8c0bkqGN04vRlIzvdZ/ES4A="; hash = "sha256-lpLWqaSFx/RJg73n5XNN/qUXHfZsBkbABoYcgxpK3rU=";
}; };
vendorSha256 = "sha256-UVFi/QK2zwzhBkPXEJLYc5WSu3OOvWTVVGkMhrrufyc="; vendorHash = "sha256-n1wwi7I2hDLOe08RkJOiopDUGI6uhipNpBdeOLARIoU=";
subPackages = [ subPackages = [
"cmd/soju" "cmd/soju"
"cmd/sojuctl" "cmd/sojuctl"
"contrib/znc-import.go" "contrib/migrate-db"
"contrib/znc-import"
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
scdoc
installShellFiles installShellFiles
scdoc
]; ];
ldflags = [ "-s" "-w" ];
postBuild = ''
make doc/soju.1
'';
postInstall = '' postInstall = ''
scdoc < doc/soju.1.scd > doc/soju.1
installManPage doc/soju.1 installManPage doc/soju.1
''; '';
preCheck = ''
# Test all targets.
unset subPackages
# Disable a test that requires an additional service.
rm database/postgres_test.go
'';
meta = with lib; { meta = with lib; {
description = "A user-friendly IRC bouncer"; description = "A 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"; homepage = "https://soju.im";
changelog = "https://git.sr.ht/~emersion/soju/refs/${src.rev}";
license = licenses.agpl3Only; license = licenses.agpl3Only;
maintainers = with maintainers; [ malvo ]; maintainers = with maintainers; [ azahi malvo ];
}; };
} }