lol

handlr: install shell completions for zsh and fish

+8 -2
+8 -2
pkgs/tools/misc/handlr/default.nix
··· 1 - { lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv }: 1 + { lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv, installShellFiles }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "handlr"; ··· 13 13 14 14 cargoSha256 = "sha256-xDQV8wVlzItz0lzR1nVRPVsg7nSf/khUhevDlGgSO3g="; 15 15 16 - nativeBuildInputs = [ shared-mime-info ]; 16 + nativeBuildInputs = [ installShellFiles shared-mime-info ]; 17 17 buildInputs = lib.optional stdenv.isDarwin libiconv; 18 18 19 19 preCheck = '' 20 20 export HOME=$TEMPDIR 21 + ''; 22 + 23 + postInstall = '' 24 + installShellCompletion \ 25 + --zsh completions/_handlr \ 26 + --fish completions/handlr.fish 21 27 ''; 22 28 23 29 meta = with lib; {