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

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

35 lines
1003 B
Nix
Raw Normal View History

2023-02-03 01:19:15 +00:00
{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation rec {
pname = "agdsn-zsh-config";
2023-08-24 13:52:17 +00:00
version = "0.7.0";
2023-02-03 01:19:15 +00:00
src = fetchFromGitHub {
owner = "agdsn";
repo = "agdsn-zsh-config";
rev = "v${version}";
2023-08-24 13:52:17 +00:00
sha256 = "sha256-HMISWAZYLpKtd3oi7vEKCWwVaJCQXUon7KYo2jj+IjE=";
2023-02-03 01:19:15 +00:00
};
dontBuild = true;
installPhase = ''
runHook preInstall
install -D -m644 zshrc-base-hw.zsh "$out/etc/zsh/zshrc"
install -D -m644 zshrc-home.zsh "$out/etc/skel/.zshrc"
install -D -m644 zshrc-home.zsh "$out/etc/zsh/newuser.zshrc.recommended"
install -D -m644 profile-d-agdsn-zsh-config.sh "$out/etc/profile.d/agdsn-zsh-config.sh"
runHook postInstall
'';
meta = with lib; {
description = "A modified version of the Grml Zsh configuration specialised for the needs of system administration";
homepage = "https://github.com/agdsn/agdsn-zsh-config";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ fugi ];
};
}