diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-06-05 21:28:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 21:28:47 +0200 |
commit | a58bfdb21c2b5c0edddd3446595cd199cbeec53b (patch) | |
tree | 6191658ab3fd913eac0f9e74ea6a1868b60e97e9 /pkgs/tools/misc | |
parent | 47c133d362cb10a4c4f533f10e686739de0c3dc8 (diff) | |
parent | 17e90ebdb8025110ae737d1a7d87cb584ca4ae4c (diff) | |
download | nixlib-a58bfdb21c2b5c0edddd3446595cd199cbeec53b.tar nixlib-a58bfdb21c2b5c0edddd3446595cd199cbeec53b.tar.gz nixlib-a58bfdb21c2b5c0edddd3446595cd199cbeec53b.tar.bz2 nixlib-a58bfdb21c2b5c0edddd3446595cd199cbeec53b.tar.lz nixlib-a58bfdb21c2b5c0edddd3446595cd199cbeec53b.tar.xz nixlib-a58bfdb21c2b5c0edddd3446595cd199cbeec53b.tar.zst nixlib-a58bfdb21c2b5c0edddd3446595cd199cbeec53b.zip |
Merge pull request #125594 from spwhitt/handlr-completions
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/handlr/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/tools/misc/handlr/default.nix b/pkgs/tools/misc/handlr/default.nix index a2dfe7feafc0..e9cd89c5f2dc 100644 --- a/pkgs/tools/misc/handlr/default.nix +++ b/pkgs/tools/misc/handlr/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv }: +{ lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "handlr"; @@ -13,13 +13,19 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-xDQV8wVlzItz0lzR1nVRPVsg7nSf/khUhevDlGgSO3g="; - nativeBuildInputs = [ shared-mime-info ]; + nativeBuildInputs = [ installShellFiles shared-mime-info ]; buildInputs = lib.optional stdenv.isDarwin libiconv; preCheck = '' export HOME=$TEMPDIR ''; + postInstall = '' + installShellCompletion \ + --zsh completions/_handlr \ + --fish completions/handlr.fish + ''; + meta = with lib; { description = "Alternative to xdg-open to manage default applications with ease"; homepage = "https://github.com/chmln/handlr"; |