mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 01:02:20 +00:00
soundfont-arachno: fix darwin build
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user