nixpkgs/pkgs/shells/liquidprompt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2019-08-10 09:59:26 +00:00
stdenv.mkDerivation rec {
pname = "liquidprompt";
2022-02-12 08:47:25 +00:00
version = "2.0.4";
2019-08-10 09:59:26 +00:00
src = fetchFromGitHub {
owner = "nojhan";
repo = pname;
rev = "v${version}";
2022-02-12 08:47:25 +00:00
sha256 = "sha256-ntCfXJUOQqL63HWoG+WJr9a+qB16AaL5zf58039t7GU=";
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
'';
meta = with lib; {
2019-08-10 09:59:26 +00:00
description = "A full-featured & carefully designed adaptive prompt for Bash & Zsh";
homepage = "https://github.com/nojhan/liquidprompt";
2019-08-10 09:59:26 +00:00
license = licenses.agpl3;
platforms = platforms.all;
maintainers = with maintainers; [ gerschtli ];
};
}