at 24.05-pre 43 lines 932 B view raw
1{ lib 2, buildGoModule 3, fetchFromSourcehut 4, installShellFiles 5, scdoc 6}: 7 8buildGoModule rec { 9 pname = "superd"; 10 version = "0.7.1"; 11 12 src = fetchFromSourcehut { 13 owner = "~craftyguy"; 14 repo = pname; 15 rev = version; 16 hash = "sha256-5g9Y1Lpxp9cUe0sNvU5CdsTGcN+j00gIKPO9pD5j8uM="; 17 }; 18 19 vendorHash = "sha256-Oa99U3THyWLjH+kWMQAHO5QAS2mmtY7M7leej+gnEqo="; 20 21 nativeBuildInputs = [ 22 installShellFiles 23 scdoc 24 ]; 25 26 postBuild = '' 27 make doc 28 ''; 29 30 postInstall = '' 31 installManPage superd.1 superd.service.5 superctl.1 32 installShellCompletion --bash completions/bash/superctl 33 installShellCompletion --zsh completions/zsh/superctl 34 ''; 35 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 }; 43}