Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 nix-update-script, 6 perl, 7 python3, 8}: 9stdenv.mkDerivation { 10 pname = "misc-gitology"; 11 version = "0-unstable-2024-08-26"; 12 13 src = fetchFromGitHub { 14 owner = "da-x"; 15 repo = "misc-gitology"; 16 rev = "8f6b200ed5f4d39f86026cf050f325d5f5713950"; 17 hash = "sha256-6LoMJUOyBpP1HvVXNahEQlN1JKC9KflcOH9QWIi4M6s="; 18 }; 19 20 dontBuild = true; 21 22 buildInputs = [ 23 python3 24 # For `git-find-blob`: 25 perl 26 ]; 27 28 installPhase = '' 29 runHook preInstall 30 mkdir -p $out/bin 31 find . \ 32 -type f \ 33 -executable \ 34 -maxdepth 1 \ 35 -exec install --target-directory=$out/bin/ {} + 36 runHook postInstall 37 ''; 38 39 meta = with lib; { 40 description = "Assortment of scripts around Git"; 41 homepage = "https://github.com/da-x/misc-gitology"; 42 license = [ licenses.bsd2 ]; 43 maintainers = [ maintainers._9999years ]; 44 }; 45 46 passthru.updateScript = nix-update-script { }; 47}