nixpkgs/pkgs/applications/networking/irc/senpai/default.nix
toastal 8592d8f866 senpai: unstable-2021-05-27 -> unstable-2021-11-29
It’s been a long while since this package was upgraded. Two of the
biggest introductions is switching the config from YAML → SCFG[^1]
and allowing an external password cmd[^2], along with the myriad of
commits to the project from the last couple of months.

@malvo

[^1]: https://todo.sr.ht/~taiite/senpai/66
[^2]: 36a7d1eead
2021-12-05 12:07:53 +07:00

38 lines
865 B
Nix

{ lib, buildGoModule, fetchFromSourcehut, installShellFiles, scdoc }:
buildGoModule rec {
pname = "senpai";
version = "unstable-2021-11-29";
src = fetchFromSourcehut {
owner = "~taiite";
repo = "senpai";
rev = "3904c9190d94f273c0ae9937d3161b9fe4adf856";
sha256 = "sha256-4ZhJuAxcoGjRO5xVqzlmaUvipnyiFMuJ1A3n8vlhYxU=";
};
vendorSha256 = "sha256-xkJh7k8GZmoZqE0HgbFp2xMJQOVDkPEXOZEl6bJZz1A=";
subPackages = [
"cmd/senpai"
];
nativeBuildInputs = [
scdoc
installShellFiles
];
postInstall = ''
scdoc < doc/senpai.1.scd > doc/senpai.1
scdoc < doc/senpai.5.scd > doc/senpai.5
installManPage doc/senpai.*
'';
meta = with lib; {
description = "Your everyday IRC student";
homepage = "https://ellidri.org/senpai";
license = licenses.isc;
maintainers = with maintainers; [ malvo ];
};
}