depot/third_party/nixpkgs/pkgs/by-name/gr/grml-zsh-config/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

39 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub, lib, zsh, coreutils, inetutils, procps, txt2tags }:
stdenv.mkDerivation rec {
pname = "grml-zsh-config";
version = "0.19.14";
src = fetchFromGitHub {
owner = "grml";
repo = "grml-etc-core";
rev = "v${version}";
sha256 = "sha256-7UiP6CUP/qArOfcrFtpiNUBBwkcCSrvsPb29SSqSkmg=";
};
strictDeps = true;
nativeBuildInputs = [ txt2tags ];
buildInputs = [ zsh coreutils procps ]
++ lib.optional stdenv.hostPlatform.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 = with licenses; [ gpl2Plus gpl2Only ];
platforms = platforms.unix;
maintainers = with maintainers; [ msteen rvolosatovs ];
};
}