nixpkgs/pkgs/shells/liquidprompt/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

53 lines
1.4 KiB
Nix

{ lib, stdenv, fetchFromGitHub, gitUpdater }:
stdenv.mkDerivation rec {
pname = "liquidprompt";
version = "2.2.0";
src = fetchFromGitHub {
owner = "liquidprompt";
repo = pname;
rev = "v${version}";
hash = "sha256-ra+uJg9E2Cr1k0Ni1+xG9yKFF9iMInJFB5oAFnc52lc=";
};
strictDeps = true;
postPatch = ''
patchShebangs tools/*.sh
'';
installPhase = ''
runHook preInstall
install -D -m 0444 liquidprompt $out/bin/liquidprompt
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
# generate default config file
mkdir -p $out/share/doc/liquidprompt
tools/config-from-doc.sh --verbose > $out/share/doc/liquidprompt/liquidpromptrc-dist
mkdir -p $out/share/liquidprompt
cp -a themes $out/share/liquidprompt/
mkdir -p $out/share/liquidprompt/contrib
cp -a contrib/presets $out/share/liquidprompt/contrib/
runHook postInstall
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Full-featured & carefully designed adaptive prompt for Bash & Zsh";
homepage = "https://github.com/liquidprompt/liquidprompt";
license = licenses.agpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ gerschtli ];
};
}