diff --git a/default.nix b/default.nix index d468ad1..a686e5b 100644 --- a/default.nix +++ b/default.nix @@ -11,5 +11,5 @@ let pkgs' = import ./overlay.nix pkgs null; in { - catwalk = pkgs'.catppuccin-catwalk; + catwalk = pkgs'.catppuccin-catwalk; } diff --git a/overlay.nix b/overlay.nix index c739678..c44f40f 100644 --- a/overlay.nix +++ b/overlay.nix @@ -1,6 +1,10 @@ final: _: { catppuccin-catwalk = final.callPackage ( - { lib, rustPlatform }: + { + lib, + rustPlatform, + installShellFiles, + }: rustPlatform.buildRustPackage { pname = "catppuccin-catwalk"; inherit ((lib.importTOML ./Cargo.toml).package) version; @@ -19,6 +23,15 @@ final: _: { cargoLock.lockFile = ./Cargo.lock; + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd catwalk \ + --bash <("$out/bin/catwalk" completion bash) \ + --zsh <("$out/bin/catwalk" completion zsh) \ + --fish <("$out/bin/catwalk" completion fish) + ''; + meta = { homepage = "https://github.com/catppuccin/catwalk"; description = "🚶 Soothing pastel previews for the high-spirited!"; diff --git a/shell.nix b/shell.nix index e1586cb..54ec739 100644 --- a/shell.nix +++ b/shell.nix @@ -14,7 +14,7 @@ pkgs.mkShell { clippy rustfmt rust-analyzer - + # wasm support llvmPackages.bintools just