Skip to content

Commit

Permalink
Merge pull request #106413 from r-burns/cdparanoia
Browse files Browse the repository at this point in the history
[staging] cdparanoia: cleanup, fix build on powerpc
  • Loading branch information
mweinelt committed Jun 16, 2021
2 parents a579916 + 9f88425 commit ee31040
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/applications/audio/cdparanoia/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -20,16 +20,16 @@ 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
];

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
'';
Expand Down

0 comments on commit ee31040

Please sign in to comment.