2021-01-16 19:51:22 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, libzip, pkg-config }:
|
2016-01-03 13:27:00 -08:00
|
|
|
|
2016-01-24 11:31:44 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "tldr";
|
2017-03-06 12:12:25 -08:00
|
|
|
version = "1.3.0";
|
2016-01-03 13:27:00 -08:00
|
|
|
|
2016-01-17 18:04:54 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tldr-pages";
|
2017-03-06 12:12:25 -08:00
|
|
|
repo = "tldr-cpp-client";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "10ylpiqc06p0qpma72vwksd7hd107s0vlx9c6s9rz4vc3i274lb6";
|
2016-01-03 13:27:00 -08:00
|
|
|
};
|
|
|
|
|
2018-08-02 21:43:43 -07:00
|
|
|
buildInputs = [ curl libzip ];
|
2021-01-16 19:51:22 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2016-01-03 13:27:00 -08:00
|
|
|
|
2021-02-16 03:48:46 -08:00
|
|
|
makeFlags = ["CC=${stdenv.cc.targetPrefix}cc" "LD=${stdenv.cc.targetPrefix}cc" "CFLAGS="];
|
2018-08-02 19:36:24 -07:00
|
|
|
|
2016-04-06 10:49:19 -07:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-01-17 17:46:23 -08:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2016-01-17 17:46:23 -08: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.
|
|
|
|
'';
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://tldr-pages.github.io";
|
2016-01-17 17:46:23 -08:00
|
|
|
license = licenses.mit;
|
2018-08-02 19:36:24 -07:00
|
|
|
maintainers = with maintainers; [ taeer carlosdagos ];
|
|
|
|
platforms = platforms.all;
|
2016-01-17 17:46:23 -08:00
|
|
|
};
|
2016-01-03 13:27:00 -08:00
|
|
|
}
|