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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, lib
2015-12-17 12:48:43 +01:00
, zsh, coreutils, inetutils, procps, txt2tags }:
with lib;
stdenv.mkDerivation rec {
pname = "grml-zsh-config";
2023-07-22 08:40:14 +02:00
version = "0.19.6";
2015-12-17 12:48:43 +01:00
src = fetchFromGitHub {
owner = "grml";
repo = "grml-etc-core";
rev = "v${version}";
2023-07-22 08:40:14 +02:00
sha256 = "sha256-31BD5jUA54oLSsL4NzGaGAiOXMcZwy7uX65pD+jtE4M=";
2015-12-17 12:48:43 +01:00
};
2022-05-06 20:39:28 +02:00
strictDeps = true;
nativeBuildInputs = [ txt2tags ];
buildInputs = [ zsh coreutils 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 lib; {
2015-12-17 12:48:43 +01:00
description = "grml's zsh setup";
homepage = "https://grml.org/zsh/";
2015-12-17 12:48:43 +01:00
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ msteen rvolosatovs ];
2015-12-17 12:48:43 +01:00
};
}