at 24.11-pre 32 lines 763 B view raw
1{ lib, stdenv, fetchFromGitHub, git, python3 }: 2 3stdenv.mkDerivation rec { 4 pname = "git-backdate"; 5 version = "2023-07-19"; 6 7 src = fetchFromGitHub { 8 owner = "rixx"; 9 repo = pname; 10 rev = "8ba5a0eba04e5559be2e4b1b6e02e62b64ca4dd8"; 11 sha256 = "sha256-91cEGQ0FtoiHEZHQ93jPFHF2vLoeQuBidykePFHtrsY="; 12 }; 13 14 buildInputs = [ 15 python3 16 ]; 17 18 installPhase = '' 19 runHook preInstall 20 install -Dm555 git-backdate -t $out/bin 21 runHook postInstall 22 ''; 23 24 meta = with lib; { 25 description = "Backdate a commit or range of commit to a date or range of dates"; 26 homepage = "https://github.com/rixx/git-backdate"; 27 license = licenses.wtfpl; 28 maintainers = with maintainers; [ matthiasbeyer ]; 29 mainProgram = "git-backdate"; 30 }; 31} 32