wgo: 0.5.7 -> 0.5.9 (#380776)
[NixPkgs.git] / pkgs / by-name / ya / yarn-bash-completion / package.nix
blob748db1f186f0dc11905f3d6960b9064e0b6d50c6
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   installShellFiles,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "yarn-bash-completion";
10   version = "0.17.0";
12   src = fetchFromGitHub {
13     owner = "dsifford";
14     repo = "yarn-completion";
15     rev = "v${version}";
16     sha256 = "0xflbrbwskjqv3knvc8jqygpvfxh5ak66q7w22d1ng8gwrfqzcng";
17   };
19   strictDeps = true;
20   nativeBuildInputs = [ installShellFiles ];
22   installPhase = ''
23     runHook preInstall
25     installShellCompletion --cmd yarn ./yarn-completion.bash
27     runHook postInstall
28   '';
30   meta = with lib; {
31     homepage = "https://github.com/dsifford/yarn-completion/";
32     description = "Bash completion for Yarn";
33     license = licenses.mit;
34     maintainers = with maintainers; [ DamienCassou ];
35   };