From e4fece4f287083cb9f70124c5c71612d4a2df8ff Mon Sep 17 00:00:00 2001 From: codyopel Date: Thu, 28 May 2015 02:12:45 -0400 Subject: tetraproc: refactor --- pkgs/applications/audio/tetraproc/default.nix | 31 ++++++++++++--------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'pkgs/applications/audio/tetraproc') diff --git a/pkgs/applications/audio/tetraproc/default.nix b/pkgs/applications/audio/tetraproc/default.nix index de351a72022..b1356d3c547 100644 --- a/pkgs/applications/audio/tetraproc/default.nix +++ b/pkgs/applications/audio/tetraproc/default.nix @@ -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 @#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 + 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; }; } -- cgit 1.4.1