2016-01-18 02:04:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, clang, curl, libzip, pkgconfig }:
|
2016-01-03 21:27:00 +00:00
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-03 21:27:00 +00:00
|
|
|
name = "tldr-${version}";
|
2017-03-06 20:12:25 +00:00
|
|
|
version = "1.3.0";
|
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}";
|
|
|
|
sha256 = "10ylpiqc06p0qpma72vwksd7hd107s0vlx9c6s9rz4vc3i274lb6";
|
2016-01-03 21:27:00 +00:00
|
|
|
};
|
|
|
|
|
2016-01-18 01:46:23 +00:00
|
|
|
buildInputs = [ curl clang libzip ];
|
2016-01-18 02:04:54 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-01-03 21:27:00 +00:00
|
|
|
|
2016-04-06 18:49:19 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-01-18 01:46:23 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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;
|
2018-01-16 21:59:13 +00:00
|
|
|
maintainers = with maintainers; [ taeer ];
|
2016-01-18 01:46:23 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2016-01-03 21:27:00 +00:00
|
|
|
}
|