mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ stdenv, fetchFromGitHub, lib
|
|
, zsh, coreutils, inetutils, procps, txt2tags }:
|
|
|
|
with lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "grml-zsh-config";
|
|
version = "0.19.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grml";
|
|
repo = "grml-etc-core";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-31BD5jUA54oLSsL4NzGaGAiOXMcZwy7uX65pD+jtE4M=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ txt2tags ];
|
|
buildInputs = [ zsh coreutils 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 lib; {
|
|
description = "grml's zsh setup";
|
|
homepage = "https://grml.org/zsh/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ msteen rvolosatovs ];
|
|
};
|
|
}
|