From 7a8a3bc4f03f8e61b102ed9383d160c4fa9bb89d Mon Sep 17 00:00:00 2001 From: Rhys-T <108157737+Rhys-T@users.noreply.github.com> Date: Mon, 28 Sep 2026 15:14:14 -0400 Subject: [PATCH] soundfont-arachno: fix darwin build --- pkgs/by-name/so/soundfont-arachno/package.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/so/soundfont-arachno/package.nix b/pkgs/by-name/so/soundfont-arachno/package.nix index 7c28074bced82..364d26e549731 100644 --- a/pkgs/by-name/so/soundfont-arachno/package.nix +++ b/pkgs/by-name/so/soundfont-arachno/package.nix @@ -1,25 +1,31 @@ { lib, stdenvNoCC, - fetchzip, + fetchurl, + unzip, }: stdenvNoCC.mkDerivation rec { pname = "soundfont-arachno"; version = "1.0"; - src = fetchzip { + # Many of the files in this archive have non-UTF-8 characters in their names, + # which causes it to fail to unpack correctly on e.g. macOS/APFS when using + # fetchzip. So instead, use fetchurl and extract the correct file directly. + src = fetchurl { # Linked on http://www.arachnosoft.com/main/download.php?id=soundfont-sf2: url = "https://www.dropbox.com/s/2rnpya9ecb9m4jh/arachno-soundfont-${ builtins.replaceStrings [ "." ] [ "" ] version }-sf2.zip"; - hash = "sha256-Z5ETe0AKPCi4KlM2xOlNcyQn1xvCuor3S/tcrF+AwNQ="; - stripRoot = false; + hash = "sha256-XAxXOr5sXho8zOul1SpCKdskKDYgyaPrH0AwGOKqIt8="; }; + dontUnpack = true; + nativeBuildInputs = [ unzip ]; installPhase = '' runHook preInstall - install -Dm444 Arachno*.sf2 $out/share/soundfonts/arachno.sf2 + mkdir -p $out/share/soundfonts + unzip -p $src 'Arachno*.sf2' > $out/share/soundfonts/arachno.sf2 runHook postInstall '';