forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / gr / grml-zsh-config / package.nix
blobd7b745c63c5f108f068cc3037849d8580431979b
1 { stdenv, fetchFromGitHub, lib, zsh, coreutils, inetutils, procps, txt2tags }:
2 stdenv.mkDerivation rec {
3   pname = "grml-zsh-config";
4   version = "0.19.7";
6   src = fetchFromGitHub {
7     owner = "grml";
8     repo = "grml-etc-core";
9     rev = "v${version}";
10     sha256 = "sha256-XHuoafb1Wc8dUPrk/7jwYhlRQm76qcbQy2vHECm0Iuo=";
11   };
13   strictDeps = true;
14   nativeBuildInputs = [ txt2tags ];
15   buildInputs = [ zsh coreutils procps ]
16     ++ lib.optional stdenv.hostPlatform.isLinux inetutils;
18   buildPhase = ''
19     cd doc
20     make
21     cd ..
22   '';
24   installPhase = ''
25     install -D -m644 etc/zsh/keephack $out/etc/zsh/keephack
26     install -D -m644 etc/zsh/zshrc $out/etc/zsh/zshrc
28     install -D -m644 doc/grmlzshrc.5 $out/share/man/man5/grmlzshrc.5
29     ln -s grmlzshrc.5.gz $out/share/man/man5/grml-zsh-config.5.gz
30   '';
32   meta = with lib; {
33     description = "grml's zsh setup";
34     homepage = "https://grml.org/zsh/";
35     license = with licenses; [ gpl2Plus gpl2Only ];
36     platforms = platforms.unix;
37     maintainers = with maintainers; [ msteen rvolosatovs ];
38   };