nixpkgs/pkgs/development/tools/misc/catppuccin-catwalk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

2023-07-26 03:23:21 +00:00
{ lib
2023-08-30 09:32:14 +00:00
, fetchFromGitHub
, rustPlatform
, installShellFiles
2023-07-26 03:23:21 +00:00
}:
2023-08-30 09:32:14 +00:00
rustPlatform.buildRustPackage {
2023-07-26 03:23:21 +00:00
pname = "catppuccin-catwalk";
2023-08-30 09:32:14 +00:00
version = "0.1.0";
2023-07-26 03:23:21 +00:00
2023-08-30 09:32:14 +00:00
src = fetchFromGitHub {
owner = "catppuccin";
repo = "toolbox";
rev = "b38153e94622bab574224bb24a6ae953b3a849da";
hash = "sha256-zZRl6Xem41pBQmEoK24YR4TKiQ84nU5phBih2TF8G8g=";
2023-07-26 03:23:21 +00:00
};
2023-08-30 09:32:14 +00:00
buildAndTestSubdir = "catwalk";
cargoHash = "sha256-KoxivYLzJEjWbxIkizrMpmVwUF7bfVxl13H774lzQRg=";
2023-07-26 03:23:21 +00:00
2023-08-30 09:32:14 +00:00
nativeBuildInputs = [ installShellFiles ];
2023-07-26 03:23:21 +00:00
2023-08-30 09:32:14 +00:00
postInstall = ''
installShellCompletion --cmd catwalk \
--bash <("$out/bin/catwalk" completion bash) \
--zsh <("$out/bin/catwalk" completion zsh) \
--fish <("$out/bin/catwalk" completion fish)
'';
2023-07-26 03:23:21 +00:00
meta = with lib; {
2023-08-30 09:32:14 +00:00
homepage = "https://github.com/catppuccin/toolbox/tree/main/catwalk";
2023-07-26 03:23:21 +00:00
description = "A CLI for Catppuccin that takes in four showcase images and displays them all at once";
license = licenses.mit;
maintainers = with maintainers; [ ryanccn ];
2023-08-30 09:32:14 +00:00
mainProgram = "catwalk";
2023-07-26 03:23:21 +00:00
};
}