1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

tetraproc: refactor

This commit is contained in:
codyopel 2015-05-28 02:12:45 -04:00
parent 4d12ea8311
commit e4fece4f28

View file

@ -1,33 +1,30 @@
{ stdenv, fetchurl, jack2, libclthreads, libclxclient, fftwFloat, libsndfile, freetype, x11
}:
{ stdenv, fetchurl, fftwFloat, freetype, jack2, libclthreads, libclxclient, libsndfile, 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
buildInputs = [ jack2 libclthreads libclxclient fftwFloat libsndfile freetype x11 ];
makeFlags = [
"PREFIX=$(out)"
"SUFFIX=''"
];
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
preConfigure = ''
cd ./source/
'';
meta = {
meta = with stdenv.lib; {
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;
homepage = http://kokkinizita.linuxaudio.org/linuxaudio/;
license = licenses.gpl2;
maintainers = with maintainers; [ magnetophon ];
platforms = platforms.linux;
};
}