about summary refs log tree commit diff
path: root/pkgs/shells/zsh/grml-zsh-config
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/grml-zsh-config
parentd308ac923376b76183a0b4078f808ce40af8f86b (diff)
downloadnixlib-ddaea6ac77177c91576568af4b6f6d85195559af.tar
nixlib-ddaea6ac77177c91576568af4b6f6d85195559af.tar.gz
nixlib-ddaea6ac77177c91576568af4b6f6d85195559af.tar.bz2
nixlib-ddaea6ac77177c91576568af4b6f6d85195559af.tar.lz
nixlib-ddaea6ac77177c91576568af4b6f6d85195559af.tar.xz
nixlib-ddaea6ac77177c91576568af4b6f6d85195559af.tar.zst
nixlib-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/grml-zsh-config')
-rw-r--r--pkgs/shells/zsh/grml-zsh-config/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/grml-zsh-config/default.nix b/pkgs/shells/zsh/grml-zsh-config/default.nix
new file mode 100644
index 000000000000..e516393a23ca
--- /dev/null
+++ b/pkgs/shells/zsh/grml-zsh-config/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchFromGitHub, lib
+, zsh, coreutils, inetutils, procps, txt2tags }:
+
+with lib;
+
+stdenv.mkDerivation rec {
+  name = "grml-zsh-config-${version}";
+  version = "0.14.3";
+
+  src = fetchFromGitHub {
+    owner = "grml";
+    repo = "grml-etc-core";
+    rev = "v${version}";
+    sha256 = "1akx6lwxnbcccddzw41rci8rb9n5vb6q2vpn5qr07f0grchyiifk";
+  };
+
+  buildInputs = [ zsh coreutils txt2tags procps ]
+    ++ optional stdenv.isLinux [ inetutils ];
+
+  buildPhase = ''
+    cd doc
+    make
+    cd ..
+  '';
+
+  installPhase = ''
+    install -D -m644 etc/zsh/keephack $out/etc/zsh/keephack
+    install -D -m644 etc/zsh/zshrc $out/etc/zsh/zshrc
+
+    install -D -m644 doc/grmlzshrc.5 $out/share/man/man5/grmlzshrc.5
+    ln -s grmlzshrc.5.gz $out/share/man/man5/grml-zsh-config.5.gz
+  '';
+
+  meta = with stdenv.lib; {
+    description = "grml's zsh setup";
+    homepage = http://grml.org/zsh/;
+    license = licenses.gpl2;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ msteen rvolosatovs ];
+  };
+}