bat: 0.18.1 -> 0.18.2
(cherry picked from commit ebf9a91123ccbfaf42bbc91c5fb897bfbd4d0721)
This commit is contained in:
parent
bb8978a77c
commit
ea0b0e31e1
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
@ -12,16 +13,15 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "bat";
|
pname = "bat";
|
||||||
version = "0.18.1";
|
version = "0.18.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sharkdp";
|
owner = "sharkdp";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-kyl+clL/4uxVaDH/9zPDGQTir4/JVgtHo9kNQ31gXTo=";
|
sha256 = "sha256-Y8CmVOIDPQ9kpggOlKnxLV0oOyNRow0r/nvxNpCtYNU=";
|
||||||
};
|
};
|
||||||
|
cargoSha256 = "sha256-MdfBldImyW8QV0P3zPrYT2Vi9zChvXePI2T8tRsrlcQ=";
|
||||||
cargoSha256 = "sha256-j9HbOXiwN4CWv9wMBrNxY3jehh+KRkXlwmDqChNy1Dk=";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config installShellFiles makeWrapper ];
|
nativeBuildInputs = [ pkg-config installShellFiles makeWrapper ];
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
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,zsh}
|
installShellCompletion $releaseDir/build/bat-*/out/assets/completions/bat.{bash,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
|
||||||
|
|
Loading…
Reference in New Issue