2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2019-08-10 10:59:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "liquidprompt";
|
2021-03-03 01:33:40 +00:00
|
|
|
version = "2.0.2";
|
2019-08-10 10:59:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nojhan";
|
|
|
|
repo = pname;
|
2020-08-02 01:16:38 +01:00
|
|
|
rev = "v${version}";
|
2021-03-03 01:33:40 +00:00
|
|
|
sha256 = "sha256-FXBClOkGRUey/FnLw3g3uiHUJeNiB4tXqP4Na6CuwIM=";
|
2019-08-10 10:59:26 +01: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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-10 10:59:26 +01:00
|
|
|
description = "A full-featured & carefully designed adaptive prompt for Bash & Zsh";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/nojhan/liquidprompt";
|
2019-08-10 10:59:26 +01:00
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
};
|
|
|
|
}
|