2022-05-18 14:49:53 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unstableGitUpdater, bash }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zsh-prezto";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "unstable-2022-10-26";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sorin-ionescu";
|
|
|
|
repo = "prezto";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "e3a9583f3370e11a0da1414d3f335eac40c1e922";
|
|
|
|
sha256 = "P4hgs6b3lKQCDCeyhepCn4HSZu7WuJE+j96PfFOLfl4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [ bash ];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
postPatch = ''
|
|
|
|
# make zshrc aware of where zsh-prezto is installed
|
|
|
|
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/share/zsh-prezto/|g" runcoms/zshrc
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2021-02-05 17:12:51 +00:00
|
|
|
mkdir -p $out/share/zsh-prezto
|
|
|
|
cp -R ./ $out/share/zsh-prezto
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater {};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "The configuration framework for Zsh";
|
|
|
|
longDescription = ''
|
|
|
|
Prezto is the configuration framework for Zsh; it enriches
|
|
|
|
the command line interface environment with sane defaults,
|
|
|
|
aliases, functions, auto completion, and prompt themes.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/sorin-ionescu/prezto";
|
|
|
|
license = licenses.mit;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ holymonson ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|