From 4321060e504b74f517a28d22008e57127cebde9a Mon Sep 17 00:00:00 2001 From: qzylinra Date: Thu, 28 Aug 2025 10:23:38 +0800 Subject: [PATCH] zsh-git-prompt: drop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This software hasn’t been updated upstream for nearly 10 years and no longer works properly. https://github.com/olivierverdier/zsh-git-prompt/issues/156 --- pkgs/by-name/zs/zsh-git-prompt/package.nix | 84 ---------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/release-haskell.nix | 1 - 3 files changed, 1 insertion(+), 85 deletions(-) delete mode 100644 pkgs/by-name/zs/zsh-git-prompt/package.nix diff --git a/pkgs/by-name/zs/zsh-git-prompt/package.nix b/pkgs/by-name/zs/zsh-git-prompt/package.nix deleted file mode 100644 index d78768336d0f..000000000000 --- a/pkgs/by-name/zs/zsh-git-prompt/package.nix +++ /dev/null @@ -1,84 +0,0 @@ -# zsh-git-prompt -- Informative git prompt for zsh -# -# Usage: to enable this plugin for all users, you could -# add it to configuration.nix like this: -# -# programs.zsh.interactiveShellInit = '' -# source ${pkgs.zsh-git-prompt}/share/zsh-git-prompt/zshrc.sh -# ''; -# -# Or you can install it globally but only enable it in individual -# users' ~/.zshrc files: -# -# source /run/current-system/sw/share/zsh-git-prompt/zshrc.sh -# -# Or if installed locally: -# -# source ~/.nix-profile/share/zsh-git-prompt/zshrc.sh -# -# Either way, you then have to set a prompt that incorporates -# git_super_status, for example: -# -# PROMPT='%B%m%~%b$(git_super_status) %# ' -# -# More details are in share/doc/zsh-git-prompt/README.md, once -# installed. -# -{ - fetchFromGitHub, - python3, - git, - lib, - haskellPackages, -}: - -haskellPackages.callPackage ( - { - mkDerivation, - base, - HUnit, - parsec, - process, - QuickCheck, - }: - mkDerivation rec { - pname = "zsh-git-prompt"; - version = "0.4z"; # While we await a real 0.5 release. - src = fetchFromGitHub { - owner = "starcraftman"; - repo = "zsh-git-prompt"; - rev = "11b83ba3b85d14c66cf2ab79faefab6d838da28e"; - sha256 = "04aylsjfb03ckw219plkzpyiq4j9g66bjxa5pa56h1p7df6pjssb"; - }; - prePatch = '' - substituteInPlace zshrc.sh \ - --replace ':-"python"' ':-"haskell"' \ - --replace 'python ' '${python3.interpreter} ' \ - --replace 'git ' '${git}/bin/git ' - ''; - preCompileBuildDriver = "cd src"; - postInstall = '' - cd .. - gpshare=$out/share/${pname} - gpdoc=$out/share/doc/${pname} - mkdir -p $gpshare/src $gpdoc - cp README.md $gpdoc - cp zshrc.sh gitstatus.py $gpshare - mv $out/bin $gpshare/src/.bin - ''; - isLibrary = false; - isExecutable = true; - libraryHaskellDepends = [ - base - parsec - process - QuickCheck - ]; - executableHaskellDepends = libraryHaskellDepends; - testHaskellDepends = [ HUnit ] ++ libraryHaskellDepends; - homepage = "https://github.com/olivierverdier/zsh-git-prompt#readme"; - description = "Informative git prompt for zsh"; - license = lib.licenses.mit; - maintainers = [ lib.maintainers.league ]; - } -) { } diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 58e7cf890438..bf1496a3aef4 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -2546,6 +2546,7 @@ mapAliases { zplugin = throw "'zplugin' has been renamed to/replaced by 'zinit'"; # Converted to throw 2024-10-17 zk-shell = throw "zk-shell has been removed as it was broken and unmaintained"; # Added 2024-08-10 zkg = throw "'zkg' has been replaced by 'zeek'"; + zsh-git-prompt = throw "zsh-git-prompt was removed as it is unmaintained upstream"; # Added 2025-08-28 zsh-history = throw "'zsh-history' has been removed as it was unmaintained"; # Added 2025-04-17 zq = zed.overrideAttrs (old: { meta = old.meta // { diff --git a/pkgs/top-level/release-haskell.nix b/pkgs/top-level/release-haskell.nix index 1552fbeab76c..13d5f02fbae6 100644 --- a/pkgs/top-level/release-haskell.nix +++ b/pkgs/top-level/release-haskell.nix @@ -384,7 +384,6 @@ let xmonadctl xmonad-with-packages yi - zsh-git-prompt ; # Members of the elmPackages set that are Haskell derivations