3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/soju/default.nix

39 lines
811 B
Nix
Raw Normal View History

2021-05-20 16:28:20 +01:00
{ lib, buildGoModule, fetchFromSourcehut, installShellFiles, scdoc }:
buildGoModule rec {
pname = "soju";
2022-01-01 22:36:04 +00:00
version = "0.3.0";
2021-05-20 16:28:20 +01:00
src = fetchFromSourcehut {
owner = "~emersion";
repo = "soju";
rev = "v${version}";
2022-01-01 22:36:04 +00:00
sha256 = "sha256-j7LwWBBJvNUeg0+P632HaGliVtrrCD0VNxkynaZzidQ=";
2021-05-20 16:28:20 +01:00
};
2022-01-01 22:36:04 +00:00
vendorSha256 = "sha256-fDfH2pQ5MtZDjiGx26vS5dBzxejVXPfflLX8N8VcJTA=";
2021-05-20 16:28:20 +01: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 ];
};
}