24 lines
383 B
Nix
24 lines
383 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
environment.systemPackages = [
|
|
(pkgs.writeShellApplication {
|
|
name = "git-churn";
|
|
|
|
runtimeInputs = with pkgs; [
|
|
git
|
|
coreutils
|
|
gnugrep
|
|
];
|
|
|
|
text = ''
|
|
git log -M -C --name-only --format='format:' "$@" |
|
|
sort |
|
|
grep -v '^$' |
|
|
uniq -c |
|
|
sort -n
|
|
'';
|
|
})
|
|
];
|
|
}
|