02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
33 lines
1 KiB
Nix
33 lines
1 KiB
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "liquidprompt";
|
|
version = "2.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nojhan";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-7mnrXLqnCdOuS2aRs4tVLfO8SRFrqZHNM40gWE/CVFI=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
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 lib; {
|
|
description = "A full-featured & carefully designed adaptive prompt for Bash & Zsh";
|
|
homepage = "https://github.com/nojhan/liquidprompt";
|
|
license = licenses.agpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
};
|
|
}
|