blob: 05d3026e76f4ccd09c43dca7f2c8bc90b0da1a28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib, stdenv, fetchFromGitHub, curl, libzip, pkg-config }:
stdenv.mkDerivation rec {
pname = "tldr";
version = "1.4.2";
src = fetchFromGitHub {
owner = "tldr-pages";
repo = "tldr-cpp-client";
rev = "v${version}";
sha256 = "sha256-dsEqnHIs6vamdfLrkstRcV90tt7QcKIJwrPr+ksTVlQ=";
};
buildInputs = [ curl libzip ];
nativeBuildInputs = [ pkg-config ];
makeFlags = ["CC=${stdenv.cc.targetPrefix}cc" "LD=${stdenv.cc.targetPrefix}cc" "CFLAGS="];
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
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;
};
}
|