mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #154302 from willcohen/zsh-darwin
zsh: fix build on darwin
This commit is contained in:
commit
852512a83f
@ -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 New Issue
Block a user