From 19dd92369e27197002e8c0b03ff3538dfd843276 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 26 May 2022 04:18:43 +0300 Subject: [PATCH 1/2] zsh: 5.8.1 -> 5.9 && add artturin to maintainers --- pkgs/shells/zsh/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index f09a0672f19a..7a584e29f5dc 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -13,7 +13,7 @@ , buildPackages }: let - version = "5.8.1"; + version = "5.9"; in stdenv.mkDerivation { @@ -22,7 +22,7 @@ stdenv.mkDerivation { src = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}.tar.xz"; - sha256 = "sha256-tpc1ILrOYAtHeSACabHl155fUFrElSBYwRrVu/DdmRk="; + sha256 = "sha256-m40ezt1bXoH78ZGOh2dSp92UjgXBoNuhCrhjhC1FrNU="; }; patches = [ @@ -97,7 +97,7 @@ EOF ''; license = "MIT-like"; homepage = "https://www.zsh.org/"; - maintainers = with lib.maintainers; [ pSub ]; + maintainers = with lib.maintainers; [ pSub artturin ]; platforms = lib.platforms.unix; }; From c8474bca5455d1a34fa99fbba497a3f4a488cd8e Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 31 May 2022 19:55:19 +0300 Subject: [PATCH 2/2] zsh: remove versioned binary fedora, openSUSE, and debian do it too https://src.fedoraproject.org/rpms/zsh/blob/rawhide/f/zsh.spec#_108 https://salsa.debian.org/debian/zsh/-/blob/debian/debian/rules#L142 --- pkgs/shells/zsh/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index 7a584e29f5dc..e5967ac1f78b 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -82,6 +82,8 @@ EOF ${lib.getBin buildPackages.zsh}/bin/zsh -c "zcompile $out/etc/zprofile" ''} mv $out/etc/zprofile $out/etc/zprofile_zwc_is_used + + rm $out/bin/zsh-${version} ''; # XXX: patch zsh to take zwc if newer _or equal_