about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorJonas Heinrich <onny@project-insanity.org>2022-05-27 13:11:54 +0200
committerJonas Heinrich <onny@project-insanity.org>2022-05-27 13:13:55 +0200
commit376715187c66b5957bc2290575be56fa6c148222 (patch)
treebdee906a845362e2239199b6ea39d79a1cecc43a /pkgs/shells
parentd7330843b011caa278406fe5b0da39a44ec45510 (diff)
fishPlugins.grc: init at unstable-2022-05-24
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/fish/plugins/default.nix2
-rw-r--r--pkgs/shells/fish/plugins/grc.nix20
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix
index 98b41f6cc1896..1adf040d64f9a 100644
--- a/pkgs/shells/fish/plugins/default.nix
+++ b/pkgs/shells/fish/plugins/default.nix
@@ -19,6 +19,8 @@ lib.makeScope newScope (self: with self; {
 
   fzf-fish = callPackage ./fzf-fish.nix { };
 
+  grc = callPackage ./grc.nix { };
+
   hydro = callPackage ./hydro.nix { };
 
   pisces = callPackage ./pisces.nix { };
diff --git a/pkgs/shells/fish/plugins/grc.nix b/pkgs/shells/fish/plugins/grc.nix
new file mode 100644
index 0000000000000..f506ba36c13cc
--- /dev/null
+++ b/pkgs/shells/fish/plugins/grc.nix
@@ -0,0 +1,20 @@
+{ lib, buildFishPlugin, fetchFromGitHub }:
+
+buildFishPlugin {
+  pname = "grc";
+  version = "unstable-2022-05-24";
+
+  src = fetchFromGitHub {
+    owner = "oh-my-fish";
+    repo = "plugin-grc";
+    rev = "61de7a8a0d7bda3234f8703d6e07c671992eb079";
+    sha256 = "sha256-NQa12L0zlEz2EJjMDhWUhw5cz/zcFokjuCK5ZofTn+Q=";
+  };
+
+  meta = with lib; {
+    description = "grc Colourizer for some commands on Fish shell";
+    license = licenses.mit;
+    maintainers = with maintainers; [ onny ];
+    platforms = with platforms; unix;
+  };
+}