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 12:41:18 +00:00
|
|
|
pname = "tldr";
|
2021-11-23 11:10:41 +00:00
|
|
|
version = "1.4.2";
|
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}";
|
2021-11-23 11:10:41 +00:00
|
|
|
sha256 = "sha256-dsEqnHIs6vamdfLrkstRcV90tt7QcKIJwrPr+ksTVlQ=";
|
2016-01-03 21:27:00 +00:00
|
|
|
};
|
|
|
|
|
2018-08-03 04:43:43 +00:00
|
|
|
buildInputs = [ curl libzip ];
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2016-01-03 21:27:00 +00:00
|
|
|
|
2021-02-16 11:48:46 +00:00
|
|
|
makeFlags = ["CC=${stdenv.cc.targetPrefix}cc" "LD=${stdenv.cc.targetPrefix}cc" "CFLAGS="];
|
2018-08-03 02:36:24 +00:00
|
|
|
|
2016-04-06 17:49:19 +00: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 01:11:51 +00:00
|
|
|
homepage = "http://tldr-pages.github.io";
|
2016-01-18 01:46:23 +00:00
|
|
|
license = licenses.mit;
|
2018-08-03 02:36:24 +00: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
|
|
|
}
|