Merge pull request #154302 from willcohen/zsh-darwin

zsh: fix build on darwin
This commit is contained in:
Bernardo Meurer 2022-01-10 18:31:46 +00:00 committed by GitHub
commit 852512a83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ stdenv.mkDerivation {
})
];
nativeBuildInputs = [ autoreconfHook yodl perl groff util-linux texinfo ];
nativeBuildInputs = [ autoreconfHook perl groff util-linux texinfo ] ++ lib.optionals stdenv.isLinux [ yodl ];
buildInputs = [ ncurses pcre ];
@ -55,9 +55,11 @@ stdenv.mkDerivation {
checkFlags = map (T: "TESTNUM=${T}") (lib.stringToCharacters "ABCDEVW");
# XXX: think/discuss about this, also with respect to nixos vs nix-on-X
postInstall = ''
postInstall = lib.optionalString stdenv.isDarwin ''
make install.bin install.modules install.fns
'' + lib.optionalString stdenv.isLinux ''
make install.info install.html
'' + ''
mkdir -p $out/etc/
cat > $out/etc/zprofile <<EOF
if test -e /etc/NIXOS; then