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