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