summary refs log tree commit diff
path: root/pkgs/shells/zsh/lambda-mod-zsh-theme/default.nix
blob: c4d63bd2771027ada1b9425fb8c561d5fe3be02d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchFromGitHub, zsh }:

stdenv.mkDerivation {
  name = "lambda-mod-zsh-theme-unstable-2017-10-08";

  src = fetchFromGitHub {
    owner = "halfo";
    repo = "lambda-mod-zsh-theme";
    sha256 = "13yis07zyr192s0x2h04k5bm1yzbk5m3js83aa17xh5573w4b786";
    rev = "61c373c8aa5556d51522290b82ad44e7166bced1";
  };

  buildInputs = [ zsh ];

  installPhase = ''
    chmod +x lambda-mod.zsh-theme # only executable scripts are found by `patchShebangs`
    patchShebangs .

    install -Dm0644 lambda-mod.zsh-theme $out/share/zsh/themes/lambda-mod.zsh-theme
  '';

  meta = with stdenv.lib; {
    description = "A ZSH theme optimized for people who use Git & Unicode-compatible fonts and terminals";
    homepage = https://github.com/halfo/lambda-mod-zsh-theme/;
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ ma27 ];
  };
}