Merge pull request #70585 from lilyball/bat-updates

bat: update dependencies
This commit is contained in:
lewo 2019-10-10 20:49:42 +02:00 committed by GitHub
commit 072edcbe37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
{ stdenv, rustPlatform, fetchFromGitHub, llvmPackages, pkgconfig, zlib
, Security, libiconv
{ stdenv, rustPlatform, fetchFromGitHub, llvmPackages, pkgconfig
, Security, libiconv, installShellFiles
}:
rustPlatform.buildRustPackage rec {
@ -16,15 +16,15 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0d7h0kn41w6wm4w63vjy2i7r19jkansfvfjn7vgh2gqh5m60kal2";
nativeBuildInputs = [ pkgconfig llvmPackages.libclang zlib ];
nativeBuildInputs = [ pkgconfig llvmPackages.libclang installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security libiconv ];
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
postInstall = ''
install -m 444 -Dt $out/share/man/man1 doc/bat.1
install -m 444 -Dt $out/share/fish/vendor_completions.d assets/completions/bat.fish
installManPage doc/bat.1
installShellCompletion assets/completions/bat.fish
'';
meta = with stdenv.lib; {