nixpkgs/pkgs/shells/liquidprompt/default.nix
2021-02-06 14:28:09 +00:00

33 lines
1022 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "liquidprompt";
version = "2.0.0";
src = fetchFromGitHub {
owner = "nojhan";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+qNH4Df0wCI3KE6LT3YWKpp7yzJcedmVlm/f1Myz108=";
};
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 ];
};
}