diff --git a/pkgs/applications/audio/tetraproc/default.nix b/pkgs/applications/audio/tetraproc/default.nix new file mode 100644 index 000000000000..de351a720226 --- /dev/null +++ b/pkgs/applications/audio/tetraproc/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, jack2, libclthreads, libclxclient, fftwFloat, libsndfile, freetype, x11 +}: + +stdenv.mkDerivation rec { + name = "tetraproc-${version}"; + version = "0.8.2"; + src = fetchurl { + url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${name}.tar.bz2"; + sha256 = "17y3vbm5f6h5cmh3yfxjgqz4xhfwpkla3lqfspnbm4ndlzmfpykv"; + }; + + buildInputs = [ + jack2 libclthreads libclxclient fftwFloat libsndfile freetype x11 + ]; + + patchPhase = '' + cd source + sed -e "s@#include @#include <${libclthreads}/include>@" -i tetraproc.cc + sed -e "s@#include @#include <${libclxclient}/include>@" -i *.h + sed -e "s@#include @#include <${libclthreads}/include>@" -i *.h + sed -e "s@#include @#include <${libclxclient}/include>@" -i png2img.* + sed -e "s@/usr/local@$out@" -i Makefile + ''; + + meta = { + description = "Converts the A-format signals from a tetrahedral Ambisonic microphone into B-format signals ready for recording"; + version = "${version}"; + homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/"; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.magnetophon ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 234593906acb..c17d9e8228a7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12386,6 +12386,8 @@ let tesseract = callPackage ../applications/graphics/tesseract { }; + tetraproc = callPackage ../applications/audio/tetraproc { }; + thinkingRock = callPackage ../applications/misc/thinking-rock { }; thunderbird = callPackage ../applications/networking/mailreaders/thunderbird {