13 rustPlatform.buildRustPackage {
14 pname = "catppuccin-catwalk";
17 src = fetchFromGitHub {
20 rev = "refs/tags/v${version}";
21 hash = "sha256-Yj9xTQJ0eu3Ymi2R9fgYwBJO0V+4bN4MOxXCJGQ8NjU=";
24 cargoHash = "sha256-bx7AvzPoMJqPa+zcn139lH2zyF09EIz7FNHnh1g8wis=";
30 buildInputs = [ libwebp ];
33 installShellCompletion --cmd catwalk \
34 --bash <("$out/bin/catwalk" completion bash) \
35 --zsh <("$out/bin/catwalk" completion zsh) \
36 --fish <("$out/bin/catwalk" completion fish)
39 doInstallCheck = !stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isElf;
40 installCheckPhase = ''
41 runHook preInstallCheck
42 readelf -a $out/bin/catwalk | grep -F 'Shared library: [libwebp.so'
43 runHook postInstallCheck
47 homepage = "https://github.com/catppuccin/toolbox/tree/main/catwalk";
48 description = "CLI for Catppuccin that takes in four showcase images and displays them all at once";
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [ ryanccn ];
51 mainProgram = "catwalk";