1 { lib, stdenv, fetchFromGitHub, python3 }:
3 stdenv.mkDerivation rec {
4 pname = "git-when-merged";
7 src = fetchFromGitHub {
11 sha256 = "sha256-Yp/GNzD+7EPlk/kzZnT1eiSNsSxpYEiZezRbUU3HfLc=";
14 buildInputs = [ python3 ];
17 install -D --target-directory $out/bin/ bin/git-when-merged
22 "Helps you figure out when and why a commit was merged into a branch";
24 If you use standard Git workflows, then you create a feature
25 branch for each feature that you are working on. When the feature
26 is complete, you merge it into your master branch. You might even
27 have sub-feature branches that are merged into a feature branch
28 before the latter is merged.
30 In such a workflow, the first-parent history of master consists
31 mainly of merges of feature branches into the mainline. git
32 when-merged can be used to ask, "When (and why) was commit C
33 merged into the current branch?"
35 homepage = "https://github.com/mhagger/git-when-merged";
36 license = licenses.gpl2Only;
37 platforms = python3.meta.platforms;
38 maintainers = with maintainers; [ DamienCassou ];