2019-08-10 11:59:26 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "liquidprompt";
|
2020-08-02 02:16:38 +02:00
|
|
|
version = "1.12.0";
|
2019-08-10 11:59:26 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nojhan";
|
|
|
|
repo = pname;
|
2020-08-02 02:16:38 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ibp1bz9s4bp3y5anivg5gp31q78024w39v7hbfw05qy25ax5h60";
|
2019-08-10 11:59:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -m 0444 liquidprompt $out/bin/liquidprompt
|
|
|
|
install -D -m 0444 liquidpromptrc-dist $out/share/doc/liquidprompt/liquidpromptrc-dist
|
|
|
|
install -D -m 0444 liquid.theme $out/share/doc/liquidprompt/liquid.theme
|
|
|
|
|
|
|
|
install -D -m 0444 liquidprompt.plugin.zsh \
|
|
|
|
$out/share/zsh/plugins/liquidprompt/liquidprompt.plugin.zsh
|
|
|
|
install -D -m 0444 liquidprompt \
|
|
|
|
$out/share/zsh/plugins/liquidprompt/liquidprompt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A full-featured & carefully designed adaptive prompt for Bash & Zsh";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nojhan/liquidprompt";
|
2019-08-10 11:59:26 +02:00
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
};
|
|
|
|
}
|