1 { lib, stdenv, fetchFromGitHub, gitUpdater }:
3 stdenv.mkDerivation rec {
4 pname = "liquidprompt";
7 src = fetchFromGitHub {
8 owner = "liquidprompt";
11 hash = "sha256-ZVzFGe3ItWsN23iyGpxZEN2KtviYKI8x/sDa2MRio/Y=";
17 patchShebangs tools/*.sh
23 install -D -m 0444 liquidprompt $out/bin/liquidprompt
25 install -D -m 0444 liquidprompt.plugin.zsh \
26 $out/share/zsh/plugins/liquidprompt/liquidprompt.plugin.zsh
27 install -D -m 0444 liquidprompt \
28 $out/share/zsh/plugins/liquidprompt/liquidprompt
30 # generate default config file
31 mkdir -p $out/share/doc/liquidprompt
32 tools/config-from-doc.sh --verbose > $out/share/doc/liquidprompt/liquidpromptrc-dist
34 mkdir -p $out/share/liquidprompt
35 cp -a themes $out/share/liquidprompt/
37 mkdir -p $out/share/liquidprompt/contrib
38 cp -a contrib/presets $out/share/liquidprompt/contrib/
43 passthru.updateScript = gitUpdater { };
46 description = "Full-featured & carefully designed adaptive prompt for Bash & Zsh";
47 homepage = "https://github.com/liquidprompt/liquidprompt";
48 license = licenses.agpl3Plus;
49 platforms = platforms.all;
50 maintainers = with maintainers; [ gerschtli ];