nixpkgs/pkgs/applications/networking/soju/default.nix

39 lines
811 B
Nix
Raw Normal View History

2021-05-20 15:28:20 +00:00
{ lib, buildGoModule, fetchFromSourcehut, installShellFiles, scdoc }:
buildGoModule rec {
pname = "soju";
2021-10-28 18:01:09 +00:00
version = "0.2.2";
2021-05-20 15:28:20 +00:00
src = fetchFromSourcehut {
owner = "~emersion";
repo = "soju";
rev = "v${version}";
2021-10-28 18:01:09 +00:00
sha256 = "sha256-ssq4fED7YIJkSHhxybBIqOr5qVEHGordBxuJOmilSOY=";
2021-05-20 15:28:20 +00:00
};
2021-10-28 18:01:09 +00:00
vendorSha256 = "sha256-60b0jhyXQg9RG0mkvUOmJOEGv96FZq/Iwv1S9c6C35c=";
2021-05-20 15:28:20 +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 ];
};
}