2016-01-18 03:04:54 +01:00
|
|
|
{ stdenv, fetchFromGitHub, clang, curl, libzip, pkgconfig }:
|
2016-01-03 22:27:00 +01:00
|
|
|
|
2016-01-24 20:31:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-03 22:27:00 +01:00
|
|
|
name = "tldr-${version}";
|
2016-04-06 19:49:19 +02:00
|
|
|
version = "1.2.0";
|
2016-01-03 22:27:00 +01:00
|
|
|
|
2016-01-18 03:04:54 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-04-06 19:49:19 +02:00
|
|
|
sha256 = "1dyvmxdxm92bfs5i6cngk8isa65qp6xlpim4yizs5rnm0rynf9kr";
|
2016-01-18 03:04:54 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "tldr-cpp-client";
|
|
|
|
owner = "tldr-pages";
|
2016-01-03 22:27:00 +01:00
|
|
|
};
|
|
|
|
|
2016-01-18 02:46:23 +01:00
|
|
|
buildInputs = [ curl clang libzip ];
|
2016-01-18 03:04:54 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-01-03 22:27:00 +01:00
|
|
|
|
2016-04-06 19:49:19 +02:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-01-18 02:46:23 +01: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;
|
|
|
|
maintainers = with maintainers; [ taeer nckx ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2016-01-03 22:27:00 +01:00
|
|
|
}
|