depot/third_party/nixpkgs/pkgs/by-name/so/soju/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

55 lines
1.3 KiB
Nix

{ lib
, buildGoModule
, fetchFromSourcehut
, installShellFiles
, scdoc
}:
buildGoModule rec {
pname = "soju";
version = "0.8.0";
src = fetchFromSourcehut {
owner = "~emersion";
repo = "soju";
rev = "v${version}";
hash = "sha256-K7Dgc1HQ6+GnjraQNcK9LOFxUIoKKWro1mWKDZFwLiE=";
};
vendorHash = "sha256-4Yl87Gk/HykjIyNpRfgthLf6b+v7kxmONIhYBWVXi0I=";
nativeBuildInputs = [
installShellFiles
scdoc
];
ldflags = [ "-s" "-w" ];
postBuild = ''
make doc/soju.1 doc/sojuctl.1
'';
postInstall = ''
installManPage doc/soju.1 doc/sojuctl.1
'';
preCheck = ''
# Disable a test that requires an additional service.
rm database/postgres_test.go
'';
meta = with lib; {
description = "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";
changelog = "https://git.sr.ht/~emersion/soju/refs/${src.rev}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ azahi malte-v jtbx ];
};
}