nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 36 lines 768 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 installShellFiles, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "yarn-bash-completion"; 10 version = "0.17.0"; 11 12 src = fetchFromGitHub { 13 owner = "dsifford"; 14 repo = "yarn-completion"; 15 rev = "v${finalAttrs.version}"; 16 sha256 = "0xflbrbwskjqv3knvc8jqygpvfxh5ak66q7w22d1ng8gwrfqzcng"; 17 }; 18 19 strictDeps = true; 20 nativeBuildInputs = [ installShellFiles ]; 21 22 installPhase = '' 23 runHook preInstall 24 25 installShellCompletion --cmd yarn ./yarn-completion.bash 26 27 runHook postInstall 28 ''; 29 30 meta = { 31 homepage = "https://github.com/dsifford/yarn-completion/"; 32 description = "Bash completion for Yarn"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ DamienCassou ]; 35 }; 36})