summaryrefslogtreecommitdiffstats
path: root/pkgs/shells
diff options
context:
space:
mode:
authorIgnat Loskutov <loskutov@google.com>2016-10-03 01:07:23 +0300
committerJörg Thalheim <joerg@higgsboson.tk>2016-10-03 17:49:04 +0200
commit9f34b5595e28e64f80f6615eb99cbd5b98b97529 (patch)
treefefd5f3002b1da514daaa31979f84e129c9fa02f /pkgs/shells
parent5e882ea558c15140e1ae0c1e296d2e1e914f96e7 (diff)
zsh-syntax-highlighting: init at 0.4.1
fixes #19179
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh-syntax-highlighting/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/shells/zsh-syntax-highlighting/default.nix b/pkgs/shells/zsh-syntax-highlighting/default.nix
new file mode 100644
index 000000000000..301ad13fa738
--- /dev/null
+++ b/pkgs/shells/zsh-syntax-highlighting/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, zsh }:
+
+# To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option
+
+let
+
+ pkgName = "zsh-syntax-highlighting";
+ version = "0.4.1";
+
+in
+
+stdenv.mkDerivation rec {
+ name = "${pkgName}-${version}";
+
+ src = fetchurl {
+ url = "https://github.com/zsh-users/${pkgName}/archive/${version}.tar.gz";
+ sha256 = "15sih7blqz11d8wdybx38d91vgcq9jg3q0205r26138si0g9q6wp";
+ };
+
+ 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.linux;
+ maintainers = [ maintainers.loskutov ];
+ };
+}