zsh: fix build on darwin

This commit is contained in:
Will Cohen 2022-01-10 11:38:28 -05:00
parent ed0a6c2827
commit 845f228ff8

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