Skip to content

Commit

Permalink
jetbrains.jdk.src: implement fix for case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Sep 19, 2022
1 parent 27a4de4 commit fcfdb62
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pkgs/development/compilers/jetbrains-jdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ openjdk17.overrideAttrs (oldAttrs: rec {
owner = "JetBrains";
repo = "JetBrainsRuntime";
rev = "jb${version}";
hash =
# Upstream issue: https://github.com/JetBrains/JetBrainsRuntime/issues/163
if stdenv.isDarwin then "sha256-ExRvjs53rIuhUx4oCgAqu1Av3CNAgmE1ZlN0srEh3XM="
else "sha256-O+OIDRJcIsb/vhO2+SYuYdUYWYTGkBcQ9cHTExLIFDE=";
hash = "sha256-ExRvjs53rIuhUx4oCgAqu1Av3CNAgmE1ZlN0srEh3XM=";
# Implement https://github.com/JetBrains/JetBrainsRuntime/pull/172
postFetch = ''
pushd "$out"/test/jdk/jb/java/awt
if [ "$(stat -c %i font)" != "$(stat -c %i Font)" ]; then
# case-sensitive filesystem
rmdir font
else
# case-insensitive filesystem
mv font _Font
mv _Font Font
fi
popd
'';
};

meta = with lib; {
Expand Down

0 comments on commit fcfdb62

Please sign in to comment.