2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, libzip, pkgconfig }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tldr";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tldr-pages";
|
|
|
|
repo = "tldr-cpp-client";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "10ylpiqc06p0qpma72vwksd7hd107s0vlx9c6s9rz4vc3i274lb6";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ curl libzip ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
makeFlags = ["CC=cc" "LD=cc" "CFLAGS="];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simplified and community-driven man pages";
|
|
|
|
longDescription = ''
|
|
|
|
tldr pages gives common use cases for commands, so you don't need to hunt
|
|
|
|
through a man page for the correct flags.
|
|
|
|
'';
|
|
|
|
homepage = "http://tldr-pages.github.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ taeer carlosdagos ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|