bat: 0.15.4 -> 0.16.0
https://github.com/sharkdp/bat/releases/tag/v0.16.0
This commit is contained in:
parent
ca5c4f96b4
commit
ef2898f093
@ -1,27 +1,34 @@
|
|||||||
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, less
|
{ stdenv
|
||||||
, Security, libiconv, installShellFiles, makeWrapper
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, less
|
||||||
|
, Security
|
||||||
|
, libiconv
|
||||||
|
, installShellFiles
|
||||||
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "bat";
|
pname = "bat";
|
||||||
version = "0.15.4";
|
version = "0.16.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sharkdp";
|
owner = "sharkdp";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0pjdba2c6p7ldgx2yfffxqlpasrcfrlkw63m1ma34zdq0f287w3p";
|
sha256 = "161pfix42j767ziyp4mslffdd20v9i0ncplvjw2pmpccwdm106kg";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0myz06hjv4hwzmyqa9l36i9j9d213a0mnq8rvx6wyff7mr9zk99i";
|
cargoSha256 = "19vhhxfyx3nrngcs6dvwldnk9h4lvs7xjkb31aj1y0pyawz882h9";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig installShellFiles makeWrapper ];
|
nativeBuildInputs = [ pkg-config installShellFiles makeWrapper ];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security libiconv ];
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security libiconv ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage $releaseDir/build/bat-*/out/assets/manual/bat.1
|
installManPage $releaseDir/build/bat-*/out/assets/manual/bat.1
|
||||||
installShellCompletion $releaseDir/build/bat-*/out/assets/completions/bat.fish
|
installShellCompletion $releaseDir/build/bat-*/out/assets/completions/bat.{fish,zsh}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Insert Nix-built `less` into PATH because the system-provided one may be too old to behave as
|
# Insert Nix-built `less` into PATH because the system-provided one may be too old to behave as
|
||||||
@ -33,8 +40,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A cat(1) clone with syntax highlighting and Git integration";
|
description = "A cat(1) clone with syntax highlighting and Git integration";
|
||||||
homepage = "https://github.com/sharkdp/bat";
|
homepage = "https://github.com/sharkdp/bat";
|
||||||
license = with licenses; [ asl20 /* or */ mit ];
|
license = with licenses; [ asl20 /* or */ mit ];
|
||||||
maintainers = with maintainers; [ dywedir lilyball zowoq ];
|
maintainers = with maintainers; [ dywedir lilyball zowoq ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user