summary refs log tree commit diff
path: root/pkgs/shells/zsh/zsh-syntax-highlighting/default.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-04-17 14:03:07 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-17 14:47:32 -0500
commitddaea6ac77177c91576568af4b6f6d85195559af (patch)
tree0292a346327a613a52b95492aea9ed76d8c55dfe /pkgs/shells/zsh/zsh-syntax-highlighting/default.nix
parentd308ac923376b76183a0b4078f808ce40af8f86b (diff)
downloadnixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.gz
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.bz2
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.lz
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.xz
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.zst
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.zip
pkgs/shells: move extensions to subdirs
These are not reaal shells and should go into their parent shell
directory.
Diffstat (limited to 'pkgs/shells/zsh/zsh-syntax-highlighting/default.nix')
-rw-r--r--pkgs/shells/zsh/zsh-syntax-highlighting/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-syntax-highlighting/default.nix b/pkgs/shells/zsh/zsh-syntax-highlighting/default.nix
new file mode 100644
index 00000000000..b7b44098fd7
--- /dev/null
+++ b/pkgs/shells/zsh/zsh-syntax-highlighting/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchFromGitHub, zsh }:
+
+# To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option
+
+stdenv.mkDerivation rec {
+  version = "0.6.0";
+  name = "zsh-syntax-highlighting-${version}";
+
+  src = fetchFromGitHub {
+    owner = "zsh-users";
+    repo = "zsh-syntax-highlighting";
+    rev = version;
+    sha256 = "0zmq66dzasmr5pwribyh4kbkk23jxbpdw4rjxx0i7dx8jjp2lzl4";
+  };
+
+  buildInputs = [ zsh ];
+
+  installFlags = "PREFIX=$(out)";
+
+  meta = with stdenv.lib; {
+    description = "Fish shell like syntax highlighting for Zsh";
+    homepage = https://github.com/zsh-users/zsh-syntax-highlighting;
+    license = licenses.bsd3;
+    platforms = platforms.unix;
+    maintainers = [ maintainers.loskutov ];
+  };
+}