nixpkgs/pkgs/shells/zsh/grml-zsh-config/default.nix

42 lines
995 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, lib
2015-12-17 11:48:43 +00:00
, zsh, coreutils, inetutils, procps, txt2tags }:
with lib;
stdenv.mkDerivation rec {
pname = "grml-zsh-config";
2021-01-30 02:20:09 +00:00
version = "0.18.0";
2015-12-17 11:48:43 +00:00
src = fetchFromGitHub {
owner = "grml";
repo = "grml-etc-core";
rev = "v${version}";
2021-01-30 02:20:09 +00:00
sha256 = "sha256-5QwP+dMOm6UBbQ1X1OcHawHSi3DJIciny2sV7biE18c=";
2015-12-17 11:48:43 +00:00
};
2018-03-27 00:42:46 +01:00
buildInputs = [ zsh coreutils txt2tags procps ]
++ 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
'';
meta = with lib; {
2015-12-17 11:48:43 +00:00
description = "grml's zsh setup";
homepage = "https://grml.org/zsh/";
2015-12-17 11:48:43 +00:00
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ msteen rvolosatovs ];
2015-12-17 11:48:43 +00:00
};
}