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