diff options
author | codyopel <codyopel@gmail.com> | 2015-05-28 02:12:45 -0400 |
---|---|---|
committer | codyopel <codyopel@gmail.com> | 2015-05-28 02:12:45 -0400 |
commit | e4fece4f287083cb9f70124c5c71612d4a2df8ff (patch) | |
tree | de367b38c66e29da2d0af1d0912c280f7d387e55 /pkgs/applications/audio/tetraproc | |
parent | 4d12ea8311c8a55bd905ed4b9d5480481c4c3726 (diff) | |
download | nixpkgs-e4fece4f287083cb9f70124c5c71612d4a2df8ff.tar nixpkgs-e4fece4f287083cb9f70124c5c71612d4a2df8ff.tar.gz nixpkgs-e4fece4f287083cb9f70124c5c71612d4a2df8ff.tar.bz2 nixpkgs-e4fece4f287083cb9f70124c5c71612d4a2df8ff.tar.lz nixpkgs-e4fece4f287083cb9f70124c5c71612d4a2df8ff.tar.xz nixpkgs-e4fece4f287083cb9f70124c5c71612d4a2df8ff.tar.zst nixpkgs-e4fece4f287083cb9f70124c5c71612d4a2df8ff.zip |
tetraproc: refactor
Diffstat (limited to 'pkgs/applications/audio/tetraproc')
-rw-r--r-- | pkgs/applications/audio/tetraproc/default.nix | 31 |
1 files changed, 14 insertions, 17 deletions
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 <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; }; } |