nixpkgs/pkgs/tools/misc/tldr/default.nix

33 lines
930 B
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ lib, stdenv, fetchFromGitHub, curl, libzip, pkg-config }:
stdenv.mkDerivation rec {
pname = "tldr";
2017-03-06 20:12:25 +00:00
version = "1.3.0";
src = fetchFromGitHub {
owner = "tldr-pages";
2017-03-06 20:12:25 +00:00
repo = "tldr-cpp-client";
rev = "v${version}";
sha256 = "10ylpiqc06p0qpma72vwksd7hd107s0vlx9c6s9rz4vc3i274lb6";
};
2018-08-03 05:43:43 +01:00
buildInputs = [ curl libzip ];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config ];
makeFlags = ["CC=${stdenv.cc.targetPrefix}cc" "LD=${stdenv.cc.targetPrefix}cc" "CFLAGS="];
2018-08-03 03:36:24 +01:00
2016-04-06 18:49:19 +01:00
installFlags = [ "PREFIX=$(out)" ];
2016-01-18 01:46:23 +00:00
meta = with lib; {
2016-01-18 01:46:23 +00:00
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";
2016-01-18 01:46:23 +00:00
license = licenses.mit;
2018-08-03 03:36:24 +01:00
maintainers = with maintainers; [ taeer carlosdagos ];
platforms = platforms.all;
2016-01-18 01:46:23 +00:00
};
}