2022-05-06 18:39:28 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
unstableGitUpdater,
|
|
|
|
bash,
|
|
|
|
}:
|
2016-05-15 03:05:05 +00:00
|
|
|
|
2020-05-17 22:59:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zsh-prezto";
|
2024-06-05 19:09:36 +00:00
|
|
|
version = "0-unstable-2024-06-03";
|
2021-01-23 13:29:37 +00:00
|
|
|
|
2020-05-17 22:59:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sorin-ionescu";
|
|
|
|
repo = "prezto";
|
2024-06-05 19:09:36 +00:00
|
|
|
rev = "9195b66161b196238cbd52a8a4abd027bdaf5f73";
|
|
|
|
sha256 = "wN/86uFBahUWl9RnKvdf88zVxou7B8Kh7/s3JfMye0g=";
|
2016-05-16 23:49:37 +00:00
|
|
|
fetchSubmodules = true;
|
2016-05-15 03:05:05 +00:00
|
|
|
};
|
2021-01-23 13:29:37 +00:00
|
|
|
|
2022-05-06 18:39:28 +00:00
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [ bash ];
|
|
|
|
|
2021-02-09 02:16:04 +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
|
|
|
|
'';
|
|
|
|
|
2016-05-15 03:05:05 +00:00
|
|
|
installPhase = ''
|
2021-01-29 18:25:03 +00:00
|
|
|
mkdir -p $out/share/zsh-prezto
|
|
|
|
cp -R ./ $out/share/zsh-prezto
|
2016-05-15 03:05:05 +00:00
|
|
|
'';
|
2021-01-23 13:29:37 +00:00
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-29 18:25:03 +00:00
|
|
|
description = "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-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/sorin-ionescu/prezto";
|
2016-05-15 03:05:05 +00:00
|
|
|
license = licenses.mit;
|
2021-01-23 13:29:37 +00:00
|
|
|
maintainers = with maintainers; [ holymonson ];
|
2021-01-23 13:29:37 +00:00
|
|
|
platforms = platforms.unix;
|
2016-05-15 03:05:05 +00:00
|
|
|
};
|
|
|
|
}
|