nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge pull request #248916 from nagy/jc-completion

jc: add shell completions

authored by

Atemu and committed by
GitHub
0bbfea46 2eb9cd65

+11
+11
pkgs/development/python-modules/jc/default.nix
··· 1 1 { lib 2 + , stdenv 3 + , buildPackages 2 4 , buildPythonPackage 3 5 , fetchFromGitHub 6 + , installShellFiles 4 7 , ruamel-yaml 5 8 , xmltodict 6 9 , pygments ··· 24 21 }; 25 22 26 23 propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ]; 24 + 25 + nativeBuildInputs = [ installShellFiles ]; 26 + 27 + postInstall = let emulator = stdenv.hostPlatform.emulator buildPackages; in '' 28 + installShellCompletion --cmd jc \ 29 + --bash <(${emulator} $out/bin/jc --bash-comp) \ 30 + --zsh <(${emulator} $out/bin/jc --zsh-comp) 31 + ''; 27 32 28 33 nativeCheckInputs = [ pytestCheckHook ]; 29 34