mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, unstableGitUpdater }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zsh-prezto";
|
|
version = "unstable-2021-06-02";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sorin-ionescu";
|
|
repo = "prezto";
|
|
rev = "6833fcd2f2afbc7396ea7a5fa9eb3b49f4678242";
|
|
sha256 = "1a8gndj1f8sjnq7clc742lm4qyhp1a2zid6g6lmfr1axhcbn38v6";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
postPatch = ''
|
|
# make zshrc aware of where zsh-prezto is installed
|
|
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/share/zsh-prezto/|g" runcoms/zshrc
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/zsh-prezto
|
|
cp -R ./ $out/share/zsh-prezto
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater {};
|
|
|
|
meta = with lib; {
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ holymonson ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|