Files
nixpkgs/pkgs/by-name/gi/git-backdate/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
769 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
python3,
}:
stdenv.mkDerivation {
pname = "git-backdate";
version = "2023-07-19";
src = fetchFromGitHub {
owner = "rixx";
repo = "git-backdate";
rev = "8ba5a0eba04e5559be2e4b1b6e02e62b64ca4dd8";
sha256 = "sha256-91cEGQ0FtoiHEZHQ93jPFHF2vLoeQuBidykePFHtrsY=";
};
buildInputs = [
python3
];
installPhase = ''
runHook preInstall
install -Dm555 git-backdate -t $out/bin
runHook postInstall
'';
meta = {
description = "Backdate a commit or range of commit to a date or range of dates";
homepage = "https://github.com/rixx/git-backdate";
license = lib.licenses.wtfpl;
maintainers = with lib.maintainers; [ matthiasbeyer ];
mainProgram = "git-backdate";
};
}