diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-29 21:32:12 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-29 21:34:25 -0400 |
commit | 6e7cc807ffa7549ea089a9599d1d73536365fbdd (patch) | |
tree | cf3c02bba7bef28fb11d19966398ee40576902e1 /pkgs/misc/jackaudio/default.nix | |
parent | c82bb3133cba555d9a61ddcca1d58f770e02efaa (diff) | |
download | nixpkgs-6e7cc807ffa7549ea089a9599d1d73536365fbdd.tar nixpkgs-6e7cc807ffa7549ea089a9599d1d73536365fbdd.tar.gz nixpkgs-6e7cc807ffa7549ea089a9599d1d73536365fbdd.tar.bz2 nixpkgs-6e7cc807ffa7549ea089a9599d1d73536365fbdd.tar.lz nixpkgs-6e7cc807ffa7549ea089a9599d1d73536365fbdd.tar.xz nixpkgs-6e7cc807ffa7549ea089a9599d1d73536365fbdd.tar.zst nixpkgs-6e7cc807ffa7549ea089a9599d1d73536365fbdd.zip |
jackaudio: reenable on darwin
Apply patch to fix darwin build.
Diffstat (limited to 'pkgs/misc/jackaudio/default.nix')
-rw-r--r-- | pkgs/misc/jackaudio/default.nix | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/pkgs/misc/jackaudio/default.nix b/pkgs/misc/jackaudio/default.nix index b37af235d35..a7b3e5f0fde 100644 --- a/pkgs/misc/jackaudio/default.nix +++ b/pkgs/misc/jackaudio/default.nix @@ -1,8 +1,9 @@ { stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper +, fetchpatch , bash, libsamplerate, libsndfile, readline, eigen, celt -, wafHook +, wafHook, aften # Darwin Dependencies -, aften, AudioToolbox, CoreAudio, CoreFoundation +, AudioUnit, CoreAudio, cf-private, libobjc, Accelerate # Optional Dependencies , dbus ? null, libffado ? null, alsaLib ? null @@ -39,22 +40,20 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig python makeWrapper wafHook ]; buildInputs = [ libsamplerate libsndfile readline eigen celt optDbus optPythonDBus optLibffado optAlsaLib optLibopus - ] ++ optionals stdenv.isDarwin [ aften AudioToolbox CoreAudio CoreFoundation ]; - - # CoreFoundation 10.10 doesn't include CFNotificationCenter.h yet. - patches = optionals stdenv.isDarwin [ ./darwin-cf.patch ]; + aften + ] ++ optionals stdenv.isDarwin [ + AudioUnit CoreAudio Accelerate cf-private libobjc + ]; prePatch = '' substituteInPlace svnversion_regenerate.sh \ --replace /bin/bash ${bash}/bin/bash ''; - # It looks like one of the frameworks depends on <CoreFoundation/CFAttributedString.h> - # since frameworks are impure we also have to use the impure CoreFoundation here. - # FIXME: remove when CoreFoundation is updated to 10.11 - preConfigure = optionalString stdenv.isDarwin '' - export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE" - ''; + patches = [ (fetchpatch { + url = "https://github.com/jackaudio/jack2/commit/d851fada460d42508a6f82b19867f63853062583.patch"; + sha256 = "1iwwxjzvgrj7dz3s8alzlhcgmcarjcbkrgvsmy6kafw21pyyw7hp"; + }) ]; wafConfigureFlags = [ "--classic" @@ -76,6 +75,5 @@ stdenv.mkDerivation rec { license = licenses.gpl2Plus; platforms = platforms.unix; maintainers = with maintainers; [ goibhniu ]; - badPlatforms = [ "x86_64-darwin" ]; }; } |