2016-01-17 17:46:23 -08:00
|
|
|
{ stdenv, fetchurl, clang, curl, libzip }:
|
2016-01-03 13:27:00 -08:00
|
|
|
|
2016-01-17 17:46:23 -08:00
|
|
|
let version = "1.1.0"; in
|
2016-01-03 13:27:00 -08:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "tldr-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/tldr-pages/tldr-cpp-client/archive/v${version}.tar.gz";
|
2016-01-17 17:46:23 -08:00
|
|
|
sha256 = "0f2ijx17hv64w6zrv0vhj1j1jikzsj42657510vxcqqr8zanzlpf";
|
2016-01-03 13:27:00 -08:00
|
|
|
};
|
|
|
|
|
2016-01-17 17:46:23 -08:00
|
|
|
buildInputs = [ curl clang libzip ];
|
2016-01-03 13:27:00 -08:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -d $prefix/bin
|
|
|
|
install tldr $prefix/bin
|
|
|
|
'';
|
2016-01-17 17:46:23 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
|
|
|
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 nckx ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2016-01-03 13:27:00 -08:00
|
|
|
}
|