Merge pull request #168856 from marsam/update-tldr

tldr: 1.4.2 -> 1.4.3
This commit is contained in:
Mario Rodas 2022-04-16 08:14:17 -05:00 committed by GitHub
commit 541e870d94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,27 @@
{ lib, stdenv, fetchFromGitHub, curl, libzip, pkg-config }:
{ lib, stdenv, fetchFromGitHub, curl, libzip, pkg-config, installShellFiles }:
stdenv.mkDerivation rec {
pname = "tldr";
version = "1.4.2";
version = "1.4.3";
src = fetchFromGitHub {
owner = "tldr-pages";
repo = "tldr-cpp-client";
rev = "v${version}";
sha256 = "sha256-dsEqnHIs6vamdfLrkstRcV90tt7QcKIJwrPr+ksTVlQ=";
sha256 = "sha256-ZNUW2PebRUDLcZ2/dXClXqf8NUjgw6N73h32PJ8iwmM=";
};
buildInputs = [ curl libzip ];
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config installShellFiles ];
makeFlags = ["CC=${stdenv.cc.targetPrefix}cc" "LD=${stdenv.cc.targetPrefix}cc" "CFLAGS="];
installFlags = [ "PREFIX=$(out)" ];
postInstall = ''
installShellCompletion --cmd tldr autocomplete/complete.{bash,fish,zsh}
'';
meta = with lib; {
description = "Simplified and community-driven man pages";
longDescription = ''