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