2017-08-06 15:58:38 +02:00
|
|
|
{ stdenv, fetchFromGitHub, lib
|
2015-12-17 12:48:43 +01:00
|
|
|
, zsh, coreutils, inetutils, procps, txt2tags }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "grml-zsh-config-${version}";
|
2018-11-19 16:15:11 +01:00
|
|
|
version = "0.15.1";
|
2015-12-17 12:48:43 +01:00
|
|
|
|
2017-08-06 15:58:38 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grml";
|
|
|
|
repo = "grml-etc-core";
|
|
|
|
rev = "v${version}";
|
2018-11-19 16:15:11 +01:00
|
|
|
sha256 = "13mm1vjmb600l4g0ssr56xrlx6lwpv1brrpmf2v2pp2d5ki0d47x";
|
2015-12-17 12:48:43 +01:00
|
|
|
};
|
|
|
|
|
2018-03-27 01:42:46 +02:00
|
|
|
buildInputs = [ zsh coreutils txt2tags procps ]
|
|
|
|
++ optional stdenv.isLinux [ inetutils ];
|
2015-12-17 12:48:43 +01:00
|
|
|
|
|
|
|
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;
|
2017-09-01 10:35:49 +02:00
|
|
|
platforms = platforms.unix;
|
2017-08-06 15:58:38 +02:00
|
|
|
maintainers = with maintainers; [ msteen rvolosatovs ];
|
2015-12-17 12:48:43 +01:00
|
|
|
};
|
|
|
|
}
|