about summary refs log tree commit diff
path: root/tools/git-blame-stats/default.nix
blob: a18c086889219ddd69d5bd89cbea60f48a8a97ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ self, lib, python3, stdenvNoCC, pkgs }:

stdenvNoCC.mkDerivation rec {
  pname = "git-blame-stats";
  src = ./git-blame-stats.py;
  version = "0.1.1";

  nativeBuildInputs = with pkgs; [ python3 ];
  propagatedBuildInputs = with pkgs; [ python3 ];

  dontUnpack = true;
  dontBuild = true;

  installPhase = ''
    mkdir -p $out/bin
    cp $src $out/bin/${pname}
  '';


  meta = with pkgs.lib; {
    description = "CLI to reports git blame statistics per author.";
    license = licenses.mit;
    platforms = platforms.unix;
    maintainers = [ ];
  };
}