cdparanoia: Fix aarch64 build

Hooray for autohelltools actually reducing portability!
This commit is contained in:
Tuomas Tynkkynen 2017-03-10 19:39:40 +02:00
parent 35f9f63a39
commit c863aa384e

View file

@ -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";