cdparanoia: Fix aarch64 build

Hooray for autohelltools actually reducing portability!

+10 -5
+10 -5
pkgs/applications/audio/cdparanoia/default.nix
··· 1 - { stdenv, fetchurl, IOKit, Carbon }: 2 3 stdenv.mkDerivation rec { 4 name = "cdparanoia-III-10.2"; ··· 8 sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; 9 }; 10 11 - hardeningDisable = [ "format" ]; 12 - 13 - preConfigure = "unset CC"; 14 - 15 patches = stdenv.lib.optionals stdenv.isDarwin [ 16 (fetchurl { 17 url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch"; ··· 22 sha256 = "17l2qhn8sh4jy6ryy5si6ll6dndcm0r537rlmk4a6a8vkn852vad"; 23 }) 24 ]; 25 26 propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ 27 Carbon 28 IOKit 29 ]; 30 31 meta = { 32 homepage = http://xiph.org/paranoia;
··· 1 + { stdenv, fetchurl, autoreconfHook, gnu-config, IOKit, Carbon }: 2 3 stdenv.mkDerivation rec { 4 name = "cdparanoia-III-10.2"; ··· 8 sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; 9 }; 10 11 patches = stdenv.lib.optionals stdenv.isDarwin [ 12 (fetchurl { 13 url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch"; ··· 18 sha256 = "17l2qhn8sh4jy6ryy5si6ll6dndcm0r537rlmk4a6a8vkn852vad"; 19 }) 20 ]; 21 + 22 + buildInputs = stdenv.lib.optional stdenv.isAarch64 autoreconfHook; 23 24 propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ 25 Carbon 26 IOKit 27 ]; 28 + 29 + hardeningDisable = [ "format" ]; 30 + 31 + preConfigure = "unset CC" + stdenv.lib.optionalString stdenv.isAarch64 ''\n 32 + cp ${gnu-config}/config.sub configure.sub 33 + cp ${gnu-config}/config.guess configure.guess 34 + ''; 35 36 meta = { 37 homepage = http://xiph.org/paranoia;