forked from mirrors/nixpkgs
cdparanoia: Fix aarch64 build
Hooray for autohelltools actually reducing portability!
This commit is contained in:
parent
35f9f63a39
commit
c863aa384e
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, IOKit, Carbon }:
|
{ stdenv, fetchurl, autoreconfHook, gnu-config, IOKit, Carbon }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "cdparanoia-III-10.2";
|
name = "cdparanoia-III-10.2";
|
||||||
|
@ -8,10 +8,6 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
|
sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
|
||||||
|
|
||||||
preConfigure = "unset CC";
|
|
||||||
|
|
||||||
patches = stdenv.lib.optionals stdenv.isDarwin [
|
patches = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch";
|
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 [
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
Carbon
|
Carbon
|
||||||
IOKit
|
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 = {
|
meta = {
|
||||||
homepage = http://xiph.org/paranoia;
|
homepage = http://xiph.org/paranoia;
|
||||||
description = "A tool and library for reading digital audio from CDs";
|
description = "A tool and library for reading digital audio from CDs";
|
||||||
|
|
Loading…
Reference in a new issue