2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, installShellFiles
|
|
|
|
, scdoc
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "superd";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.7.1";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~craftyguy";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-5g9Y1Lpxp9cUe0sNvU5CdsTGcN+j00gIKPO9pD5j8uM=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|