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