From c863aa384e1a6237380afffd0feaf28b48983a23 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Fri, 10 Mar 2017 19:39:40 +0200 Subject: cdparanoia: Fix aarch64 build Hooray for autohelltools actually reducing portability! --- pkgs/applications/audio/cdparanoia/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'pkgs/applications/audio/cdparanoia') diff --git a/pkgs/applications/audio/cdparanoia/default.nix b/pkgs/applications/audio/cdparanoia/default.nix index ac5db3d1f6362..34dba5e206fa4 100644 --- a/pkgs/applications/audio/cdparanoia/default.nix +++ b/pkgs/applications/audio/cdparanoia/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, IOKit, Carbon }: +{ stdenv, fetchurl, autoreconfHook, gnu-config, IOKit, Carbon }: stdenv.mkDerivation rec { name = "cdparanoia-III-10.2"; @@ -8,10 +8,6 @@ stdenv.mkDerivation rec { sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; }; - hardeningDisable = [ "format" ]; - - preConfigure = "unset CC"; - patches = stdenv.lib.optionals stdenv.isDarwin [ (fetchurl { url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch"; @@ -23,11 +19,20 @@ stdenv.mkDerivation rec { }) ]; + buildInputs = stdenv.lib.optional stdenv.isAarch64 autoreconfHook; + propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ Carbon IOKit ]; + hardeningDisable = [ "format" ]; + + preConfigure = "unset CC" + stdenv.lib.optionalString stdenv.isAarch64 ''\n + cp ${gnu-config}/config.sub configure.sub + cp ${gnu-config}/config.guess configure.guess + ''; + meta = { homepage = http://xiph.org/paranoia; description = "A tool and library for reading digital audio from CDs"; -- cgit 1.4.1