summary refs log tree commit diff
path: root/pkgs/tools/package-management
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-10-17 11:54:36 +0100
committerGitHub <noreply@github.com>2018-10-17 11:54:36 +0100
commit7dea8e403e5540d1c1fe1b5f1003f81bb0971eb5 (patch)
tree745233ec90757b2e31eae99bc7b7cd4644e224f8 /pkgs/tools/package-management
parent41d0437849a48033e6d0215d8299c2575fde7d69 (diff)
parent62dc7fbc6170e9c96fed8eda70783bb012f57a84 (diff)
downloadnixlib-7dea8e403e5540d1c1fe1b5f1003f81bb0971eb5.tar
nixlib-7dea8e403e5540d1c1fe1b5f1003f81bb0971eb5.tar.gz
nixlib-7dea8e403e5540d1c1fe1b5f1003f81bb0971eb5.tar.bz2
nixlib-7dea8e403e5540d1c1fe1b5f1003f81bb0971eb5.tar.lz
nixlib-7dea8e403e5540d1c1fe1b5f1003f81bb0971eb5.tar.xz
nixlib-7dea8e403e5540d1c1fe1b5f1003f81bb0971eb5.tar.zst
nixlib-7dea8e403e5540d1c1fe1b5f1003f81bb0971eb5.zip
Merge pull request #48559 from tilpner/appimage-run-type-1-2
appimage-run: Fix type-1 support, used wrong directory
Diffstat (limited to 'pkgs/tools/package-management')
-rw-r--r--pkgs/tools/package-management/appimage-run/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/package-management/appimage-run/default.nix b/pkgs/tools/package-management/appimage-run/default.nix
index 8e236aa426fd..e744b897f46a 100644
--- a/pkgs/tools/package-management/appimage-run/default.nix
+++ b/pkgs/tools/package-management/appimage-run/default.nix
@@ -134,7 +134,8 @@ buildFHSUserEnv {
 
       if ${file}/bin/file --mime-type --brief --keep-going "$APPIMAGE" | grep -q iso; then
         # is type-1 appimage
-        ${libarchive}/bin/bsdtar -x -C "$SQUASHFS_ROOT" -f "$APPIMAGE"
+        mkdir "$APPDIR"
+        ${libarchive}/bin/bsdtar -x -C "$APPDIR" -f "$APPIMAGE"
       else
         # is type-2 appimage
         "$APPIMAGE" --appimage-extract 2>/dev/null