Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 bundlerApp, 4 bundlerUpdateScript, 5 git, 6 makeWrapper, 7 overcommit, 8 testers, 9}: 10 11bundlerApp rec { 12 pname = "overcommit"; 13 gemdir = ./.; 14 exes = [ "overcommit" ]; 15 16 nativeBuildInputs = [ makeWrapper ]; 17 18 postBuild = '' 19 wrapProgram $out/bin/overcommit --prefix PATH : ${lib.makeBinPath [ git ]} 20 ''; 21 22 passthru = { 23 tests.version = testers.testVersion { 24 package = overcommit; 25 version = (import ./gemset.nix).overcommit.version; 26 }; 27 updateScript = bundlerUpdateScript "overcommit"; 28 }; 29 30 meta = with lib; { 31 description = "Tool to manage and configure Git hooks"; 32 homepage = "https://github.com/sds/overcommit"; 33 changelog = "https://github.com/sds/overcommit/blob/main/CHANGELOG.md"; 34 license = licenses.mit; 35 mainProgram = "overcommit"; 36 maintainers = with maintainers; [ 37 Br1ght0ne 38 anthonyroussel 39 ]; 40 platforms = platforms.unix; 41 }; 42}