summary refs log tree commit diff
path: root/pkgs/applications/audio/tetraproc
diff options
context:
space:
mode:
authorBart Brouns <bart@magnetopon.nl>2015-05-26 04:17:09 +0200
committerBart Brouns <bart@magnetopon.nl>2015-05-26 04:17:09 +0200
commitd9c8b1f83a9e190aec401cd7e1d1d514a4042300 (patch)
treeda8112550bf005446ec71db4c359a31d519cefe7 /pkgs/applications/audio/tetraproc
parentf2f635b1f58d88a40377092b72c70d3997cd9dfd (diff)
downloadnixpkgs-d9c8b1f83a9e190aec401cd7e1d1d514a4042300.tar
nixpkgs-d9c8b1f83a9e190aec401cd7e1d1d514a4042300.tar.gz
nixpkgs-d9c8b1f83a9e190aec401cd7e1d1d514a4042300.tar.bz2
nixpkgs-d9c8b1f83a9e190aec401cd7e1d1d514a4042300.tar.lz
nixpkgs-d9c8b1f83a9e190aec401cd7e1d1d514a4042300.tar.xz
nixpkgs-d9c8b1f83a9e190aec401cd7e1d1d514a4042300.tar.zst
nixpkgs-d9c8b1f83a9e190aec401cd7e1d1d514a4042300.zip
tetraproc: init at 0.8.2
Converts the A-format signals from a tetrahedral Ambisonic microphone into B-format signals ready for recording
Diffstat (limited to 'pkgs/applications/audio/tetraproc')
-rw-r--r--pkgs/applications/audio/tetraproc/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/audio/tetraproc/default.nix b/pkgs/applications/audio/tetraproc/default.nix
new file mode 100644
index 00000000000..de351a72022
--- /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 <clthreads.h>@#include <${libclthreads}/include>@" -i tetraproc.cc
+    sed -e "s@#include <clxclient.h>@#include <${libclxclient}/include>@" -i *.h
+    sed -e "s@#include <clthreads.h>@#include <${libclthreads}/include>@" -i *.h
+    sed -e "s@#include <clxclient.h>@#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;
+  };
+}