2021-05-20 23:08:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromSourcehut, installShellFiles, scdoc }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "soju";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.2.2";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~emersion";
|
|
|
|
repo = "soju";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-ssq4fED7YIJkSHhxybBIqOr5qVEHGordBxuJOmilSOY=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
vendorSha256 = "sha256-60b0jhyXQg9RG0mkvUOmJOEGv96FZq/Iwv1S9c6C35c=";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/soju"
|
|
|
|
"cmd/sojuctl"
|
|
|
|
"contrib/znc-import.go"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
scdoc
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
scdoc < doc/soju.1.scd > doc/soju.1
|
|
|
|
installManPage doc/soju.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A user-friendly IRC bouncer";
|
|
|
|
homepage = "https://soju.im";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ malvo ];
|
|
|
|
};
|
|
|
|
}
|