diff options
author | Chuang Zhu <git@chuang.cz> | 2022-11-09 13:36:02 +0800 |
---|---|---|
committer | Chuang Zhu <git@chuang.cz> | 2022-11-09 13:36:02 +0800 |
commit | bab1ba485c5c46c964e003fae943e2461d748d9c (patch) | |
tree | 1a2ee053498be717c04ede1f7261b16d0e8dc077 /pkgs/misc/superd/default.nix | |
parent | 39ee23f4c3c21804a3929ff5fb7ee0f00bf9f0fc (diff) |
superd: init at 0.7
Diffstat (limited to 'pkgs/misc/superd/default.nix')
-rw-r--r-- | pkgs/misc/superd/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/misc/superd/default.nix b/pkgs/misc/superd/default.nix new file mode 100644 index 0000000000000..105d7278e5bb4 --- /dev/null +++ b/pkgs/misc/superd/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildGoModule +, fetchFromSourcehut +, installShellFiles +, scdoc +}: + +buildGoModule rec { + pname = "superd"; + version = "0.7"; + + src = fetchFromSourcehut { + owner = "~craftyguy"; + repo = pname; + rev = version; + hash = "sha256-XSB6qgepWhus15lOP9GzbiNoOCSsy6xLij7ic3LFs1E="; + }; + + vendorHash = "sha256-Oa99U3THyWLjH+kWMQAHO5QAS2mmtY7M7leej+gnEqo="; + + nativeBuildInputs = [ + installShellFiles + scdoc + ]; + + postBuild = '' + make doc + ''; + + postInstall = '' + installManPage superd.1 superd.service.5 superctl.1 + installShellCompletion --bash completions/bash/superctl + installShellCompletion --zsh completions/zsh/superctl + ''; + + meta = with lib; { + description = "Unprivileged user service supervisor"; + homepage = "https://sr.ht/~craftyguy/superd/"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ chuangzhu wentam ]; + }; +} |