nixpkgs/pkgs/shells/zsh/lambda-mod-zsh-theme/default.nix
Maximilian Bosch efc9511c16
lambda-mod-zsh-theme: add hooks and patch shebangs
This ensures that no impurity exists due to implicitly depending
on`/usr/bin/env`.

It stores the theme into `$out/share/zsh/themes` to make it possible to
find theme using `buildEnv` and remain consistent with other ZSH
extensions.
2018-08-05 23:01:18 +02:00

29 lines
881 B
Nix

{ 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 ];
};
}