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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
811 B
Nix
Raw Normal View History

2021-05-20 17:28:20 +02:00
{ lib, buildGoModule, fetchFromSourcehut, installShellFiles, scdoc }:
buildGoModule rec {
pname = "soju";
2022-03-15 12:54:05 +01:00
version = "0.4.0";
2021-05-20 17:28:20 +02:00
src = fetchFromSourcehut {
owner = "~emersion";
repo = "soju";
rev = "v${version}";
2022-03-15 12:54:05 +01:00
sha256 = "sha256-4ixPEnSa1m52Hu1dzxMG8c0bkqGN04vRlIzvdZ/ES4A=";
2021-05-20 17:28:20 +02:00
};
2022-03-15 12:54:05 +01:00
vendorSha256 = "sha256-UVFi/QK2zwzhBkPXEJLYc5WSu3OOvWTVVGkMhrrufyc=";
2021-05-20 17:28:20 +02: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 ];
};
}