at 23.11-beta 47 lines 1.0 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, unixtools 5, which 6}: 7 8stdenv.mkDerivation rec { 9 pname = "git-extras"; 10 version = "7.1.0"; 11 12 src = fetchFromGitHub { 13 owner = "tj"; 14 repo = "git-extras"; 15 rev = version; 16 sha256 = "sha256-e1UUAHXTRNgNWrYZuLGdrQIAD8WADmA2B9bVnDNidf8="; 17 }; 18 19 postPatch = '' 20 patchShebangs check_dependencies.sh 21 ''; 22 23 nativeBuildInputs = [ 24 unixtools.column 25 which 26 ]; 27 28 dontBuild = true; 29 30 installFlags = [ 31 "PREFIX=${placeholder "out"}" 32 "SYSCONFDIR=${placeholder "out"}/share" 33 ]; 34 35 postInstall = '' 36 # bash completion is already handled by make install 37 install -D etc/git-extras-completion.zsh $out/share/zsh/site-functions/_git_extras 38 ''; 39 40 meta = with lib; { 41 homepage = "https://github.com/tj/git-extras"; 42 description = "GIT utilities -- repo summary, repl, changelog population, author commit percentages and more"; 43 license = licenses.mit; 44 platforms = platforms.all; 45 maintainers = with maintainers; [ cko SuperSandro2000 ]; 46 }; 47}