tldr: init at 1.0
added tldr to all-packages.nix cleaned up style added metadata semicolons didn't test on mac. removed platform wrong types fixed duplication of version
This commit is contained in:
parent
1e630749d8
commit
2371acdeb2
@ -294,6 +294,7 @@
|
||||
steveej = "Stefan Junker <mail@stefanjunker.de>";
|
||||
szczyp = "Szczyp <qb@szczyp.com>";
|
||||
sztupi = "Attila Sztupak <attila.sztupak@gmail.com>";
|
||||
taeer = "Taeer Bar-Yam <taeer@necsi.edu>";
|
||||
tailhook = "Paul Colomiets <paul@colomiets.name>";
|
||||
taktoa = "Remy Goldschmidt <taktoa@gmail.com>";
|
||||
telotortium = "Robert Irelan <rirelan@gmail.com>";
|
||||
|
37
pkgs/tools/misc/tldr/default.nix
Normal file
37
pkgs/tools/misc/tldr/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{stdenv, clang, fetchurl, curl}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let version = "1.0"; in
|
||||
stdenv.mkDerivation {
|
||||
name = "tldr-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/tldr-pages/tldr-cpp-client/archive/v${version}.tar.gz";
|
||||
sha256 = "11k2pc4vfhx9q3cfd1145sdwhis9g0zhw4qnrv7s7mqnslzrrkgw";
|
||||
};
|
||||
|
||||
meta = {
|
||||
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 = [maintainers.taeer];
|
||||
platforms = platforms.linux;
|
||||
|
||||
};
|
||||
|
||||
buildInputs = [curl clang];
|
||||
|
||||
preBuild = ''
|
||||
cd src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -d $prefix/bin
|
||||
install tldr $prefix/bin
|
||||
'';
|
||||
}
|
@ -3255,6 +3255,8 @@ let
|
||||
|
||||
tlsdate = callPackage ../tools/networking/tlsdate { };
|
||||
|
||||
tldr = callPackage ../tools/misc/tldr { };
|
||||
|
||||
tmate = callPackage ../tools/misc/tmate { };
|
||||
|
||||
tmpwatch = callPackage ../tools/misc/tmpwatch { };
|
||||
|
Loading…
Reference in New Issue
Block a user