mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 21:18:05 +03:00
Merge pull request #254911 from yu-re-ka/webp-catppucin-catwalk
catppucin-catwalk: use system libwebp
This commit is contained in:
commit
019809f1a5
@ -1,7 +1,10 @@
|
|||||||
{ lib
|
{ stdenv
|
||||||
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, pkg-config
|
||||||
|
, libwebp
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage {
|
||||||
@ -18,7 +21,8 @@ rustPlatform.buildRustPackage {
|
|||||||
buildAndTestSubdir = "catwalk";
|
buildAndTestSubdir = "catwalk";
|
||||||
cargoHash = "sha256-KoxivYLzJEjWbxIkizrMpmVwUF7bfVxl13H774lzQRg=";
|
cargoHash = "sha256-KoxivYLzJEjWbxIkizrMpmVwUF7bfVxl13H774lzQRg=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||||
|
buildInputs = [ libwebp ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd catwalk \
|
installShellCompletion --cmd catwalk \
|
||||||
@ -27,6 +31,14 @@ rustPlatform.buildRustPackage {
|
|||||||
--fish <("$out/bin/catwalk" completion fish)
|
--fish <("$out/bin/catwalk" completion fish)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = !stdenv.hostPlatform.isStatic &&
|
||||||
|
stdenv.hostPlatform.parsed.kernel.execFormat == lib.systems.parse.execFormats.elf;
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
readelf -a $out/bin/catwalk | grep -F 'Shared library: [libwebp.so'
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/catppuccin/toolbox/tree/main/catwalk";
|
homepage = "https://github.com/catppuccin/toolbox/tree/main/catwalk";
|
||||||
description = "A CLI for Catppuccin that takes in four showcase images and displays them all at once";
|
description = "A CLI for Catppuccin that takes in four showcase images and displays them all at once";
|
||||||
|
Loading…
Reference in New Issue
Block a user