ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / se / senpai / package.nix
blobf27a31e66088769a92fb80238229fc7f450e74d0
1 { lib, buildGoModule, fetchFromSourcehut, installShellFiles, scdoc }:
3 buildGoModule rec {
4   pname = "senpai";
5   version = "0.3.0";
7   src = fetchFromSourcehut {
8     owner = "~delthas";
9     repo = "senpai";
10     rev = "v${version}";
11     sha256 = "sha256-A5kBrJJi+RcSpB0bi2heKzNl5LjdeT9h2Pc9kKXDg1A=";
12   };
14   vendorHash = "sha256-kKYee1QJX7N101MTikHUbX+AqZ2NhM4soE4JAAOdAPI=";
16   patches = [
17     # fix build failures, submitted upstream https://lists.sr.ht/~delthas/senpai-dev/patches/48581
18     ./bump-go-version.patch
19   ];
21   subPackages = [
22     "cmd/senpai"
23   ];
25   nativeBuildInputs = [
26     scdoc
27     installShellFiles
28   ];
30   postInstall = ''
31     scdoc < doc/senpai.1.scd > doc/senpai.1
32     scdoc < doc/senpai.5.scd > doc/senpai.5
33     installManPage doc/senpai.*
34   '';
36   meta = with lib; {
37     description = "Your everyday IRC student";
38     mainProgram = "senpai";
39     homepage = "https://sr.ht/~taiite/senpai/";
40     changelog = "https://git.sr.ht/~delthas/senpai/refs/v${version}";
41     license = licenses.isc;
42     maintainers = with maintainers; [ malte-v ];
43   };