3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/pd-plugins/timbreid/default.nix

46 lines
1,005 B
Nix
Raw Normal View History

2017-12-07 12:42:37 +00:00
{ stdenv, fetchurl, unzip, puredata, fftw }:
stdenv.mkDerivation rec {
2017-12-07 12:42:37 +00:00
version = "0.7.0";
pname = "timbreid";
src = fetchurl {
url = "http://williambrent.conflations.com/pd/timbreID-${version}-src.zip";
2017-12-07 12:42:37 +00:00
sha256 = "14k2xk5zrzrw1zprdbwx45hrlc7ck8vq4drpd3l455i5r8yk4y6b";
};
2017-12-07 12:42:37 +00:00
buildInputs = [ unzip puredata fftw ];
unpackPhase = ''
2017-12-07 12:42:37 +00:00
mkdir source
cd source
unzip $src
'';
2017-12-07 12:42:37 +00:00
buildPhase = ''
make tIDLib.o all
'';
installPhase = ''
mkdir -p $out/
cp -r *.pd $out/
cp -r *.pd_linux $out/
2017-12-07 12:42:37 +00:00
cp -r audio/ $out/
cp -r data/ $out/
cp -r doc/ $out/
'';
2017-12-07 12:42:37 +00:00
postFixup = ''
mv $out/share/doc/ $out/
rm -rf $out/share/
'';
meta = {
description = "A collection of audio feature analysis externals for puredata";
homepage = "http://williambrent.conflations.com/pages/research.html";
license = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux;
};
}