@@ -0,0 +1,37 @@
1+{stdenv, clang, fetchurl, curl}:
2+
3+with stdenv.lib;
4+
5+let version = "1.0"; in
6+stdenv.mkDerivation {
7+ name = "tldr-${version}";
8+
9+ src = fetchurl {
10+ url = "https://github.com/tldr-pages/tldr-cpp-client/archive/v${version}.tar.gz";
11+ sha256 = "11k2pc4vfhx9q3cfd1145sdwhis9g0zhw4qnrv7s7mqnslzrrkgw";
12+ };
13+
14+ meta = {
15+ inherit version;
16+ description = "Simplified and community-driven man pages";
17+ longDescription = ''
18+ tldr pages gives common use cases for commands, so you don't need to hunt through a man page for the correct flags.
19+ '';
20+ homepage = http://tldr-pages.github.io;
21+ license = licenses.mit;
22+ maintainers = [maintainers.taeer];
23+ platforms = platforms.linux;
24+
25+ };
26+
27+ buildInputs = [curl clang];
28+
29+ preBuild = ''
30+ cd src
31+ '';
32+
33+ installPhase = ''
34+ install -d $prefix/bin
35+ install tldr $prefix/bin
36+ '';
37+}