summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2023-09-26 20:43:29 +0100
committerThiago Kenji Okada <thiagokokada@gmail.com>2023-09-27 10:25:45 +0100
commit8bf7e83c0995bd53fadf0e7a388ef35740d78321 (patch)
tree6e11974ed0a0ad745b6f6d4d1bf55f05f820ec40 /pkgs/development/compilers
parent76f51c0366ff92f8ef562e1a7a2d77e3e1fd9e8d (diff)
downloadnixpkgs-8bf7e83c0995bd53fadf0e7a388ef35740d78321.tar
nixpkgs-8bf7e83c0995bd53fadf0e7a388ef35740d78321.tar.gz
nixpkgs-8bf7e83c0995bd53fadf0e7a388ef35740d78321.tar.bz2
nixpkgs-8bf7e83c0995bd53fadf0e7a388ef35740d78321.tar.lz
nixpkgs-8bf7e83c0995bd53fadf0e7a388ef35740d78321.tar.xz
nixpkgs-8bf7e83c0995bd53fadf0e7a388ef35740d78321.tar.zst
nixpkgs-8bf7e83c0995bd53fadf0e7a388ef35740d78321.zip
graalvmCEPackages.buildGraalvmProduct: fix build in darwin
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix13
1 files changed, 1 insertions, 12 deletions
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