1 { lib, stdenv, fetchFromGitHub, curl, libzip, pkg-config, installShellFiles }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
9 repo = "tldr-c-client";
11 sha256 = "sha256-1L9frURnzfq0XvPBs8D+hBikybAw8qkb0DyZZtkZleY=";
14 buildInputs = [ curl libzip ];
15 nativeBuildInputs = [ pkg-config installShellFiles ];
17 makeFlags = ["CC=${stdenv.cc.targetPrefix}cc" "LD=${stdenv.cc.targetPrefix}cc" "CFLAGS="];
19 installFlags = [ "PREFIX=$(out)" ];
22 installShellCompletion --cmd tldr autocomplete/complete.{bash,fish,zsh}
26 description = "Simplified and community-driven man pages";
28 tldr pages gives common use cases for commands, so you don't need to hunt
29 through a man page for the correct flags.
31 homepage = "https://tldr.sh";
32 changelog = "https://github.com/tldr-pages/tldr-c-client/blob/v${version}/CHANGELOG.md";
33 license = licenses.mit;
34 maintainers = with maintainers; [ taeer carlosdagos kbdharun];
35 platforms = platforms.all;