nixpkgs/pkgs/shells/zsh/agdsn-zsh-config/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

35 lines
1001 B
Nix

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation rec {
pname = "agdsn-zsh-config";
version = "0.9.0";
src = fetchFromGitHub {
owner = "agdsn";
repo = "agdsn-zsh-config";
rev = "v${version}";
sha256 = "sha256-8POQPk/hsJBMJ/ZJe9XzVj7Rd7C2+QnpzgYbUR0s3Fc=";
};
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 = "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 ];
};
}