From c8474bca5455d1a34fa99fbba497a3f4a488cd8e Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 31 May 2022 19:55:19 +0300 Subject: [PATCH] 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_