From 8bf7e83c0995bd53fadf0e7a388ef35740d78321 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 26 Sep 2023 20:43:29 +0100 Subject: graalvmCEPackages.buildGraalvmProduct: fix build in darwin --- .../graalvm/community-edition/buildGraalvmProduct.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'pkgs/development/compilers') diff --git a/pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix b/pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix index 073defa0cdc..33fa7175a8d 100644 --- a/pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix +++ b/pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix @@ -45,18 +45,7 @@ stdenv.mkDerivation ({ mkdir -p "$out" - # The tarball on Linux has the following directory structure: - # - # graalvm-ce-java11-20.3.0/* - # - # while on Darwin it looks like this: - # - # graalvm-ce-java11-20.3.0/Contents/Home/* - # - # We therefor use --strip-components=1 vs 3 depending on the platform. - tar xf "$src" -C "$out" --strip-components=${ - if stdenv.isLinux then "1" else "3" - } + tar xf "$src" -C "$out" --strip-components=1 # Sanity check if [ ! -d "$out/bin" ]; then -- cgit 1.4.1