From 8dcfd8f20a77b5a9369de6ed690ebdd44175fc89 Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Fri, 13 Aug 2021 11:53:09 -0700 Subject: [PATCH] openjdk11: fix the share/man symlink on darwin --- pkgs/development/compilers/openjdk/darwin/11.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/compilers/openjdk/darwin/11.nix b/pkgs/development/compilers/openjdk/darwin/11.nix index ae045ddfdba0..0b158a169321 100644 --- a/pkgs/development/compilers/openjdk/darwin/11.nix +++ b/pkgs/development/compilers/openjdk/darwin/11.nix @@ -65,6 +65,12 @@ let EOF ''; + # fixupPhase is moving the man to share/man which breaks it because it's a + # relative symlink. + postFixup = '' + ln -nsf ../zulu-11.jdk/Contents/Home/man $out/share/man + ''; + passthru = { home = jdk; };