about summary refs log tree commit diff stats
path: root/pkgs/by-name/gi/git-cleanup/package.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 18:02:15 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 18:02:15 +0200
commitc6e29c9ebef761f27829ed991700550b1fd1e811 (patch)
tree77a1a786068070df8894c924dbb64e04927dda68 /pkgs/by-name/gi/git-cleanup/package.nix
parentrefactor(git/scripts): Upgrade `git-cm` to a 'real' package (diff)
downloadnixos-config-c6e29c9ebef761f27829ed991700550b1fd1e811.tar.gz
nixos-config-c6e29c9ebef761f27829ed991700550b1fd1e811.zip
feat(pkgs): Add a `git-cleanup` script
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/gi/git-cleanup/package.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/by-name/gi/git-cleanup/package.nix b/pkgs/by-name/gi/git-cleanup/package.nix
new file mode 100644
index 00000000..e9aab772
--- /dev/null
+++ b/pkgs/by-name/gi/git-cleanup/package.nix
@@ -0,0 +1,15 @@
+{
+  sysLib,
+  git,
+  gnused,
+}:
+sysLib.writeShellScript {
+  name = "git-cleanup";
+  src = ./git-cleanup.sh;
+  keepPath = false;
+  generateCompletions = true;
+  dependencies = [
+    git
+    gnused
+  ];
+}