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