2017-08-06 13:58:38 +00:00
|
|
|
{ stdenv, fetchFromGitHub, lib
|
2015-12-17 11:48:43 +00:00
|
|
|
, zsh, coreutils, inetutils, procps, txt2tags }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "grml-zsh-config";
|
2021-07-11 09:51:21 +00:00
|
|
|
version = "0.19.0";
|
2015-12-17 11:48:43 +00:00
|
|
|
|
2017-08-06 13:58:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grml";
|
|
|
|
repo = "grml-etc-core";
|
|
|
|
rev = "v${version}";
|
2021-07-11 09:51:21 +00:00
|
|
|
sha256 = "sha256-Vn8NzpvJ1W/+UUuhr1plLqskVBUOFJHvy+hxKE3DmIs=";
|
2015-12-17 11:48:43 +00:00
|
|
|
};
|
|
|
|
|
2018-03-26 23:42:46 +00:00
|
|
|
buildInputs = [ zsh coreutils txt2tags procps ]
|
2019-11-10 01:13:39 +00:00
|
|
|
++ optional stdenv.isLinux inetutils;
|
2015-12-17 11:48:43 +00: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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-12-17 11:48:43 +00:00
|
|
|
description = "grml's zsh setup";
|
2020-10-02 07:58:50 +00:00
|
|
|
homepage = "https://grml.org/zsh/";
|
2015-12-17 11:48:43 +00:00
|
|
|
license = licenses.gpl2;
|
2017-09-01 08:35:49 +00:00
|
|
|
platforms = platforms.unix;
|
2017-08-06 13:58:38 +00:00
|
|
|
maintainers = with maintainers; [ msteen rvolosatovs ];
|
2015-12-17 11:48:43 +00:00
|
|
|
};
|
|
|
|
}
|