diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-11-14 02:51:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 20:51:42 -0500 |
commit | b016e85f39d5945c855df7cf7073f97c0e899a5e (patch) | |
tree | f2ebfe45c3eb2cf0c9046f11a6b9e602cf4511dc /pkgs/applications/audio/audacity/default.nix | |
parent | ee7ed5fa6ba8d24bd9100e6bb7bb218328988c76 (diff) |
audacity: add x86_64-darwin support (#201104)
Diffstat (limited to 'pkgs/applications/audio/audacity/default.nix')
-rw-r--r-- | pkgs/applications/audio/audacity/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/audio/audacity/default.nix b/pkgs/applications/audio/audacity/default.nix index 47bfcf8b8c06..c12cc30df26d 100644 --- a/pkgs/applications/audio/audacity/default.nix +++ b/pkgs/applications/audio/audacity/default.nix @@ -84,6 +84,10 @@ stdenv.mkDerivation rec { '' + lib.optionalString stdenv.isLinux '' substituteInPlace libraries/lib-files/FileNames.cpp \ --replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h + '' + # error: unknown type name 'NSAppearanceName' + + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) '' + sed -z -i "s/if (@available(macOS 10.14, \*)).*}/}/g" src/AudacityApp.mm ''; nativeBuildInputs = [ @@ -199,7 +203,5 @@ stdenv.mkDerivation rec { ]; maintainers = with maintainers; [ lheckemann veprbl wegank ]; platforms = platforms.unix; - # error: unknown type name 'NSAppearanceName' - broken = stdenv.isDarwin && stdenv.isx86_64; }; } |