summary refs log tree commit diff
path: root/pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix')
-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