default.nix (919B)
1 { lib, stdenv, fetchFromGitHub, bashInteractive, installShellFiles }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "bash-completor"; 5 version = "0.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "adoyle-h"; 9 repo = "bash-completor"; 10 rev = "v${finalAttrs.version}"; 11 hash = "sha256-Ph+cQaXbykn703cdgkqlXcYMO4vvH6e0hCeecWS/6yA="; 12 }; 13 14 nativeBuildInputs = [ bashInteractive installShellFiles ]; 15 16 buildFlags = [ "build" ]; 17 18 installPhase = '' 19 install -Dm755 dist/bash-completor -t $out/bin 20 installShellCompletion dist/bash-completor.completion.bash 21 ''; 22 23 meta = with lib; { 24 description = "Creating a bash completion script in a declarative way"; 25 inherit (finalAttrs.src.meta) homepage; 26 license = licenses.asl20; 27 maintainers = [ maintainers.sikmir ]; 28 platforms = platforms.unix; 29 broken = stdenv.isLinux; # ./tools/build-dist: cannot execute: required file not found 30 }; 31 })