2023-10-24 23:18:17 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gitUpdater }:
|
2019-08-10 09:59:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "liquidprompt";
|
2022-07-28 22:52:55 +00:00
|
|
|
version = "2.1.2";
|
2019-08-10 09:59:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-24 23:20:46 +00:00
|
|
|
owner = "liquidprompt";
|
2019-08-10 09:59:26 +00:00
|
|
|
repo = pname;
|
2020-08-02 00:16:38 +00:00
|
|
|
rev = "v${version}";
|
2022-07-28 22:52:55 +00:00
|
|
|
sha256 = "sha256-7mnrXLqnCdOuS2aRs4tVLfO8SRFrqZHNM40gWE/CVFI=";
|
2019-08-10 09:59:26 +00:00
|
|
|
};
|
|
|
|
|
2022-05-06 18:39:28 +00:00
|
|
|
strictDeps = true;
|
2019-08-10 09:59:26 +00: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
|
|
|
|
'';
|
|
|
|
|
2023-10-24 23:18:17 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-10 09:59:26 +00:00
|
|
|
description = "A full-featured & carefully designed adaptive prompt for Bash & Zsh";
|
2023-10-24 23:20:46 +00:00
|
|
|
homepage = "https://github.com/liquidprompt/liquidprompt";
|
2024-03-19 12:26:06 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2019-08-10 09:59:26 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
};
|
|
|
|
}
|