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