nixpkgs/pkgs/shells/zsh/zsh-prezto/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.2 KiB
Nix
Raw Normal View History

2022-05-06 20:39:28 +02:00
{ lib, stdenv, fetchFromGitHub, unstableGitUpdater, bash }:
2016-05-15 05:05:05 +02:00
2020-05-18 00:59:12 +02:00
stdenv.mkDerivation rec {
pname = "zsh-prezto";
version = "unstable-2024-01-18";
2021-01-23 14:29:37 +01:00
2020-05-18 00:59:12 +02:00
src = fetchFromGitHub {
owner = "sorin-ionescu";
repo = "prezto";
rev = "ac356c8cf6af51f276483ae8bb8c9c4954183eb9";
sha256 = "tyj92iZUFfS0xMaEkqIYvPJcksNlAQS4bKtDkWp0Ctc=";
fetchSubmodules = true;
2016-05-15 05:05:05 +02:00
};
2021-01-23 14:29:37 +01:00
2022-05-06 20:39:28 +02:00
strictDeps = true;
buildInputs = [ bash ];
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 05:05:05 +02:00
installPhase = ''
2021-01-29 19:25:03 +01:00
mkdir -p $out/share/zsh-prezto
cp -R ./ $out/share/zsh-prezto
2016-05-15 05:05:05 +02:00
'';
2021-01-23 14:29:37 +01:00
passthru.updateScript = unstableGitUpdater {};
meta = with lib; {
2021-01-29 19:25:03 +01: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 05:05:05 +02:00
license = licenses.mit;
2021-01-23 14:29:37 +01:00
maintainers = with maintainers; [ holymonson ];
2021-01-23 14:29:37 +01:00
platforms = platforms.unix;
2016-05-15 05:05:05 +02:00
};
}