Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

clive: init at 0.12.9

Signed-off-by: misilelab <misileminecord@gmail.com>

+56
+56
pkgs/by-name/cl/clive/package.nix
··· 1 + { 2 + lib, 3 + ttyd, 4 + buildGoModule, 5 + fetchFromGitHub, 6 + installShellFiles, 7 + makeWrapper, 8 + versionCheckHook, 9 + nix-update-script, 10 + }: 11 + buildGoModule rec { 12 + pname = "clive"; 13 + version = "0.12.9"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "koki-develop"; 17 + repo = "clive"; 18 + tag = "v${version}"; 19 + hash = "sha256-mNx5SCBvhpxk9IkKp1j0oyPNZl91cAKHGIUzyYf+bYU="; 20 + }; 21 + 22 + vendorHash = "sha256-jHvr2tWp8iscm6vgHdRTYlFmPOWlRG3lz8hl4PM6e/c="; 23 + subPackages = [ "." ]; 24 + buildInputs = [ ttyd ]; 25 + nativeBuildInputs = [ 26 + installShellFiles 27 + makeWrapper 28 + ]; 29 + 30 + ldflags = [ 31 + "-X github.com/koki-develop/clive/cmd.version=${version}" 32 + ]; 33 + 34 + postInstall = '' 35 + wrapProgram $out/bin/clive --prefix PATH : ${ttyd}/bin 36 + installShellCompletion --cmd clive \ 37 + --bash <($out/bin/clive completion bash) \ 38 + --fish <($out/bin/clive completion fish) \ 39 + --zsh <($out/bin/clive completion zsh) 40 + ''; 41 + 42 + nativeInstallCheckInputs = [ versionCheckHook ]; 43 + versionCheckProgramArg = "--version"; 44 + doinstallCheck = true; 45 + 46 + passthru.updateScript = nix-update-script { }; 47 + 48 + meta = { 49 + description = "Automates terminal operations"; 50 + homepage = "https://github.com/koki-develop/clive"; 51 + changelog = "https://github.com/koki-develop/clive/releases/tag/v${version}"; 52 + license = lib.licenses.mit; 53 + maintainers = with lib.maintainers; [ misilelab ]; 54 + mainProgram = "clive"; 55 + }; 56 + }