cdparanoia: fix build on powerpc
The configure helpers are old and already need to be updated on aarch64, so let's just do this on all non-x86 platforms. This will probably fix other architectures that weren't well-supported at the time. The autoreconfHook does not appear to be needed on aarch64 or powerpc.
This commit is contained in:
parent
c010b09108
commit
9f88425002
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, autoreconfHook, gnu-config, IOKit, Carbon }:
|
||||
{ lib, stdenv, fetchurl, gnu-config, IOKit, Carbon }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cdparanoia-III-10.2";
|
||||
|
@ -20,8 +20,6 @@ stdenv.mkDerivation rec {
|
|||
] ++ lib.optional stdenv.hostPlatform.isMusl ./utils.patch
|
||||
++ [./fix_private_keyword.patch];
|
||||
|
||||
nativeBuildInputs = lib.optional stdenv.isAarch64 autoreconfHook;
|
||||
|
||||
propagatedBuildInputs = lib.optionals stdenv.isDarwin [
|
||||
Carbon
|
||||
IOKit
|
||||
|
@ -29,7 +27,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
preConfigure = "unset CC" + lib.optionalString stdenv.isAarch64 '';
|
||||
preConfigure = ''
|
||||
unset CC
|
||||
'' + lib.optionalString (!stdenv.hostPlatform.isx86) ''
|
||||
cp ${gnu-config}/config.sub configure.sub
|
||||
cp ${gnu-config}/config.guess configure.guess
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue