diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-10-23 13:20:03 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-10-23 13:29:37 -0700 |
| commit | 21e9b655e9e82be8775e9375ce113858dc5791dc (patch) | |
| tree | 533e9390eef5f09133f8c8687c79a129da29c55b /tools/git-broom/default.nix | |
| parent | ref(tools/git-bootstrap): this is replaced by terraform (diff) | |
| download | infra-21e9b655e9e82be8775e9375ce113858dc5791dc.tar.gz | |
feat(tools/git-broom): CLI to delete local and remote branches
This tool helps to keep only the branches that are relevant: the ones
that have not been merged yet into the main branch on the principal
remote repository.
Diffstat (limited to 'tools/git-broom/default.nix')
| -rw-r--r-- | tools/git-broom/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/git-broom/default.nix b/tools/git-broom/default.nix new file mode 100644 index 0000000..e25c6ec --- /dev/null +++ b/tools/git-broom/default.nix @@ -0,0 +1,25 @@ +{ self, lib, python3, stdenvNoCC, pkgs }: + +stdenvNoCC.mkDerivation rec { + pname = "git-broom"; + src = ./git-broom.py; + version = "0.1.0"; + + nativeBuildInputs = with pkgs; [ python3 ]; + + dontUnpack = true; + dontBuild = true; + + installPhase = '' + mkdir -p $out/bin + cp $src $out/bin/${pname} + ''; + + + meta = with pkgs.lib; { + description = "CLI to delete local and remote git branches that have been merged."; + license = licenses.mit; + platforms = platforms.unix; + maintainers = [ ]; + }; +} |
