2021-01-23 13:29:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unstableGitUpdater }:
|
2016-05-15 04:05:05 +01:00
|
|
|
|
2020-05-17 23:59:12 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zsh-prezto";
|
2021-01-23 13:29:37 +00:00
|
|
|
version = "unstable-2021-01-19";
|
|
|
|
|
2020-05-17 23:59:12 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sorin-ionescu";
|
|
|
|
repo = "prezto";
|
2021-01-23 13:29:37 +00:00
|
|
|
rev = "704fc46c3f83ca1055becce65fb513a533f48982";
|
|
|
|
sha256 = "0rkbx6hllf6w6x64mggbhvm1fvbq5sr5kvf06sarfkpz5l0a5wh3";
|
2016-05-17 00:49:37 +01:00
|
|
|
fetchSubmodules = true;
|
2016-05-15 04:05:05 +01:00
|
|
|
};
|
2021-01-23 13:29:37 +00:00
|
|
|
|
2016-05-15 04:05:05 +01:00
|
|
|
buildPhase = ''
|
2019-04-07 15:48:01 +01:00
|
|
|
sed -i '/\''${ZDOTDIR:\-\$HOME}\/.zpreztorc" ]]/i\
|
|
|
|
if [[ -s "/etc/zpreztorc" ]]; then\
|
|
|
|
source "/etc/zpreztorc"\
|
|
|
|
fi' init.zsh
|
2016-05-15 04:05:05 +01:00
|
|
|
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/|g" init.zsh
|
|
|
|
for i in runcoms/*; do
|
|
|
|
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/|g" $i
|
|
|
|
done
|
|
|
|
'';
|
2021-01-23 13:29:37 +00:00
|
|
|
|
2016-05-15 04:05:05 +01:00
|
|
|
installPhase = ''
|
2017-11-24 14:14:15 +00:00
|
|
|
mkdir -p $out
|
2016-05-15 04:05:05 +01:00
|
|
|
cp ./* $out/ -R
|
|
|
|
'';
|
2021-01-23 13:29:37 +00:00
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater {};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "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 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sorin-ionescu/prezto";
|
2016-05-15 04:05:05 +01:00
|
|
|
license = licenses.mit;
|
2021-01-23 13:29:37 +00:00
|
|
|
platforms = platforms.unix;
|
2016-05-15 04:05:05 +01:00
|
|
|
};
|
|
|
|
}
|