From 91622a24aa6235cd3b83d77adddc2ff231714c7a Mon Sep 17 00:00:00 2001 From: Johannes Frankenau Date: Mon, 26 Mar 2018 12:35:23 +0200 Subject: [PATCH] libmysofa: init at 0.6 and enable in ffmpeg-full --- .../libraries/audio/libmysofa/default.nix | 26 +++++++++++++++++++ .../libraries/ffmpeg-full/default.nix | 4 ++- pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/audio/libmysofa/default.nix diff --git a/pkgs/development/libraries/audio/libmysofa/default.nix b/pkgs/development/libraries/audio/libmysofa/default.nix new file mode 100644 index 000000000000..d802d70adf3b --- /dev/null +++ b/pkgs/development/libraries/audio/libmysofa/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, cmake, zlib }: + +stdenv.mkDerivation rec { + name = "libmysofa-${version}"; + version = "0.6"; + + src = fetchFromGitHub { + owner = "hoene"; + repo = "libmysofa"; + rev = "v${version}"; + sha256 = "160gcmsn6dwaca29bs95nsgjdalwc299lip0h37k3jcbxxkchgsh"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ zlib ]; + + cmakeFlags = [ "-DBUILD_TESTS=OFF" ]; + + meta = with stdenv.lib; { + description = "Reader for AES SOFA files to get better HRTFs"; + homepage = https://github.com/hoene/libmysofa; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = with maintainers; [ jfrankenau ]; + }; +} diff --git a/pkgs/development/libraries/ffmpeg-full/default.nix b/pkgs/development/libraries/ffmpeg-full/default.nix index 689b13a394dc..d70efc44f3d4 100644 --- a/pkgs/development/libraries/ffmpeg-full/default.nix +++ b/pkgs/development/libraries/ffmpeg-full/default.nix @@ -78,6 +78,7 @@ #, libiec61883 ? null, libavc1394 ? null # iec61883 (also uses libraw1394) #, libmfx ? null # Hardware acceleration vis libmfx , libmodplug ? null # ModPlug support +, libmysofa ? null # HRTF support via SOFAlizer #, libnut ? null # NUT (de)muxer, native (de)muser exists , libogg ? null # Ogg container used by vorbis & theora , libopus ? null # Opus de/encoder @@ -342,6 +343,7 @@ stdenv.mkDerivation rec { #(enableFeature (if isLinux then libiec61883 != null && libavc1394 != null && libraw1394 != null else false) "libiec61883") #(enableFeature (libmfx != null) "libmfx") (enableFeature (libmodplug != null) "libmodplug") + (enableFeature (libmysofa != null) "libmysofa") #(enableFeature (libnut != null) "libnut") (enableFeature (libopus != null) "libopus") (enableFeature (libssh != null) "libssh") @@ -402,7 +404,7 @@ stdenv.mkDerivation rec { buildInputs = [ bzip2 celt fontconfig freetype frei0r fribidi game-music-emu gnutls gsm - libjack2 ladspaH lame libass libbluray libbs2b libcaca libdc1394 libmodplug + libjack2 ladspaH lame libass libbluray libbs2b libcaca libdc1394 libmodplug libmysofa libogg libopus libssh libtheora libvdpau libvorbis libvpx libwebp libX11 libxcb libXv lzma openal openjpeg_1 libpulseaudio rtmpdump opencore-amr samba SDL2 soxr speex vid-stab wavpack x264 x265 xavs xvidcore zeromq4 zlib diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3d9fcb7ca3fc..fba00efc713b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9702,6 +9702,8 @@ with pkgs; libmypaint = callPackage ../development/libraries/libmypaint { }; + libmysofa = callPackage ../development/libraries/audio/libmysofa { }; + libmysqlconnectorcpp = callPackage ../development/libraries/libmysqlconnectorcpp { mysql = mysql57; };