Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / misc / superd / default.nix
blobbe018cb24126b0794a6e0a6a6b0d87f08db4c049
1 { lib
2 , buildGoModule
3 , fetchFromSourcehut
4 , installShellFiles
5 , scdoc
6 }:
8 buildGoModule rec {
9   pname = "superd";
10   version = "0.7.1";
12   src = fetchFromSourcehut {
13     owner = "~craftyguy";
14     repo = pname;
15     rev = version;
16     hash = "sha256-5g9Y1Lpxp9cUe0sNvU5CdsTGcN+j00gIKPO9pD5j8uM=";
17   };
19   vendorHash = "sha256-Oa99U3THyWLjH+kWMQAHO5QAS2mmtY7M7leej+gnEqo=";
21   nativeBuildInputs = [
22     installShellFiles
23     scdoc
24   ];
26   postBuild = ''
27     make doc
28   '';
30   postInstall = ''
31     installManPage superd.1 superd.service.5 superctl.1
32     installShellCompletion --bash completions/bash/superctl
33     installShellCompletion --zsh completions/zsh/superctl
34   '';
36   meta = with lib; {
37     description = "Unprivileged user service supervisor";
38     homepage = "https://sr.ht/~craftyguy/superd/";
39     license = licenses.gpl3Plus;
40     platforms = platforms.linux;
41     maintainers = with maintainers; [ chuangzhu wentam ];
42   };