3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/shells/zsh/zsh-prezto/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

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";
version = "unstable-2021-06-02";
2021-01-23 13:29:37 +00:00
2020-05-17 23:59:12 +01:00
src = fetchFromGitHub {
owner = "sorin-ionescu";
repo = "prezto";
rev = "6833fcd2f2afbc7396ea7a5fa9eb3b49f4678242";
sha256 = "1a8gndj1f8sjnq7clc742lm4qyhp1a2zid6g6lmfr1axhcbn38v6";
fetchSubmodules = true;
2016-05-15 04:05:05 +01:00
};
2021-01-23 13:29:37 +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 04:05:05 +01: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 04:05:05 +01:00
'';
2021-01-23 13:29:37 +00:00
passthru.updateScript = unstableGitUpdater {};
meta = with lib; {
2021-01-29 18:25:03 +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.
'';
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
maintainers = with maintainers; [ holymonson ];
2021-01-23 13:29:37 +00:00
platforms = platforms.unix;
2016-05-15 04:05:05 +01:00
};
}