Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / shells / zsh / agdsn-zsh-config / default.nix
blob8dae2edf21b6fdfc960ec929f1fa4ab3baffaaed
1 { lib, stdenvNoCC, fetchFromGitHub }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "agdsn-zsh-config";
5   version = "0.9.0";
7   src = fetchFromGitHub {
8     owner = "agdsn";
9     repo = "agdsn-zsh-config";
10     rev = "v${version}";
11     sha256 = "sha256-8POQPk/hsJBMJ/ZJe9XzVj7Rd7C2+QnpzgYbUR0s3Fc=";
12   };
14   dontBuild = true;
16   installPhase = ''
17     runHook preInstall
19     install -D -m644 zshrc-base-hw.zsh "$out/etc/zsh/zshrc"
20     install -D -m644 zshrc-home.zsh "$out/etc/skel/.zshrc"
21     install -D -m644 zshrc-home.zsh "$out/etc/zsh/newuser.zshrc.recommended"
22     install -D -m644 profile-d-agdsn-zsh-config.sh "$out/etc/profile.d/agdsn-zsh-config.sh"
24     runHook postInstall
25   '';
27   meta = with lib; {
28     description = "Modified version of the Grml Zsh configuration specialised for the needs of system administration";
29     homepage = "https://github.com/agdsn/agdsn-zsh-config";
30     license = licenses.gpl2Plus;
31     platforms = platforms.unix;
32     maintainers = with maintainers; [ fugi ];
33   };