zsh: fix build on darwin
This commit is contained in:
parent
ed0a6c2827
commit
845f228ff8
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue