3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #67868 from dywedir/bat

bat: 0.11.0 -> 0.12.0
This commit is contained in:
Maximilian Bosch 2019-09-01 11:20:51 +02:00 committed by GitHub
commit 46bbe13207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,25 +1,27 @@
{ stdenv, rustPlatform, fetchFromGitHub, cmake, pkgconfig, zlib { stdenv, rustPlatform, fetchFromGitHub, llvmPackages, pkgconfig, zlib
, Security, libiconv , Security, libiconv
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "bat"; pname = "bat";
version = "0.11.0"; version = "0.12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sharkdp"; owner = "sharkdp";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0yyvlplskjvxb2cspqsvfsnahd5m0s83psrp777ng0wc0kr1adbw"; sha256 = "07qxghplqq8km4kp9zas2acw302a77y72x3ix1272kb1zxhw4as6";
fetchSubmodules = true; fetchSubmodules = true;
}; };
cargoSha256 = "078n31c0isvxvna0s1m12xv4bkh15rb2nixfyg4c501mlkalb517"; cargoSha256 = "0j9wxv21a91yfvbbvgn5ms5zi1aipj1k2g42mfdvvw2vsdzqagxz";
nativeBuildInputs = [ cmake pkgconfig zlib ]; nativeBuildInputs = [ pkgconfig llvmPackages.libclang zlib ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security libiconv ]; buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security libiconv ];
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
postInstall = '' postInstall = ''
install -m 444 -Dt $out/share/man/man1 doc/bat.1 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 install -m 444 -Dt $out/share/fish/vendor_completions.d assets/completions/bat.fish