From a6f973b534ec3ecca53007fdc18b6db4e63f410b Mon Sep 17 00:00:00 2001 From: Atemu Date: Thu, 9 Dec 2021 02:34:55 +0100 Subject: [PATCH 1/2] 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 = '' From 24198ef746d82e890d2da911e867d6eb56c9414d Mon Sep 17 00:00:00 2001 From: Atemu Date: Thu, 9 Dec 2021 02:41:59 +0100 Subject: [PATCH 2/2] emacsMacport: 8.2 -> 8.3 --- pkgs/applications/editors/emacs/macport.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/emacs/macport.nix b/pkgs/applications/editors/emacs/macport.nix index cd1d1ab6f066..867f7214d318 100644 --- a/pkgs/applications/editors/emacs/macport.nix +++ b/pkgs/applications/editors/emacs/macport.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { version = "27.2"; emacsName = "emacs-${version}"; - macportVersion = "8.2"; + macportVersion = "8.3"; name = "emacs-mac-${version}-${macportVersion}"; src = fetchurl { @@ -18,7 +18,8 @@ stdenv.mkDerivation rec { macportSrc = fetchurl { url = "ftp://ftp.math.s.chiba-u.ac.jp/emacs/${emacsName}-mac-${macportVersion}.tar.gz"; - sha256 = "1bgm2g3ky7rkj1l27wnmyzqsqxzjng7y9bf72ym37wiyhyi2a9za"; + sha256 = "0q4lbk3nb8rz1ibmf23plgsh8sx2wvhry5bf5mivgz4m4b6s2yij"; + name = "${emacsName}-mac-${macportVersion}.tar.xz"; # It's actually compressed with xz, not gz }; hiresSrc = fetchurl {