bat: update dependencies
Remove zlib, this is no longer a dependency as of at least 0.12.0. While we're at it, switch to using installShellFiles to install the manpage/completion.
This commit is contained in:
parent
54435c94ac
commit
dd61ba0812
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, rustPlatform, fetchFromGitHub, llvmPackages, pkgconfig, zlib
|
{ stdenv, rustPlatform, fetchFromGitHub, llvmPackages, pkgconfig
|
||||||
, Security, libiconv
|
, Security, libiconv, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -16,15 +16,15 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "0d7h0kn41w6wm4w63vjy2i7r19jkansfvfjn7vgh2gqh5m60kal2";
|
cargoSha256 = "0d7h0kn41w6wm4w63vjy2i7r19jkansfvfjn7vgh2gqh5m60kal2";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig llvmPackages.libclang zlib ];
|
nativeBuildInputs = [ pkgconfig llvmPackages.libclang installShellFiles ];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security libiconv ];
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security libiconv ];
|
||||||
|
|
||||||
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -m 444 -Dt $out/share/man/man1 doc/bat.1
|
installManPage doc/bat.1
|
||||||
install -m 444 -Dt $out/share/fish/vendor_completions.d assets/completions/bat.fish
|
installShellCompletion assets/completions/bat.fish
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user