From a6f973b534ec3ecca53007fdc18b6db4e63f410b Mon Sep 17 00:00:00 2001 From: Atemu Date: Thu, 9 Dec 2021 02:34:55 +0100 Subject: [PATCH] emacsMacport: don't explicitly unpack the tarballs as gzip tar's -z flag only works for gzip-compressed tarballs. When passed a tarball compressed with a different compressor (like xz), tar will fail to extract it. Since tar can auto-detect a compressed tarball and use the appropriate decompressor itself since forever, this is unecessary now. --- pkgs/applications/editors/emacs/macport.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/emacs/macport.nix b/pkgs/applications/editors/emacs/macport.nix index 8c395219aeb3..cd1d1ab6f066 100644 --- a/pkgs/applications/editors/emacs/macport.nix +++ b/pkgs/applications/editors/emacs/macport.nix @@ -37,11 +37,11 @@ stdenv.mkDerivation rec { postUnpack = '' mv $sourceRoot $name - tar xzf $macportSrc -C $name --strip-components=1 + tar xf $macportSrc -C $name --strip-components=1 mv $name $sourceRoot # extract retina image resources - tar xzfv $hiresSrc --strip 1 -C $sourceRoot + tar xfv $hiresSrc --strip 1 -C $sourceRoot ''; postPatch = ''