2017-12-07 12:42:37 +00:00
|
|
|
{ stdenv, fetchurl, unzip, puredata, fftw }:
|
2015-03-16 14:39:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-07 12:42:37 +00:00
|
|
|
version = "0.7.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "timbreid";
|
2015-03-16 14:39:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://williambrent.conflations.com/pd/timbreID-${version}-src.zip";
|
2017-12-07 12:42:37 +00:00
|
|
|
sha256 = "14k2xk5zrzrw1zprdbwx45hrlc7ck8vq4drpd3l455i5r8yk4y6b";
|
2015-03-16 14:39:52 +00:00
|
|
|
};
|
|
|
|
|
2017-12-07 12:42:37 +00:00
|
|
|
buildInputs = [ unzip puredata fftw ];
|
2015-03-16 14:39:52 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
2017-12-07 12:42:37 +00:00
|
|
|
mkdir source
|
|
|
|
cd source
|
2015-03-16 14:39:52 +00:00
|
|
|
unzip $src
|
|
|
|
'';
|
|
|
|
|
2017-12-07 12:42:37 +00:00
|
|
|
buildPhase = ''
|
|
|
|
make tIDLib.o all
|
|
|
|
'';
|
|
|
|
|
2015-03-16 14:39:52 +00:00
|
|
|
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/
|
2015-03-16 14:39:52 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-07 12:42:37 +00:00
|
|
|
postFixup = ''
|
|
|
|
mv $out/share/doc/ $out/
|
|
|
|
rm -rf $out/share/
|
|
|
|
'';
|
|
|
|
|
2015-03-16 14:39:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A collection of audio feature analysis externals for puredata";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://williambrent.conflations.com/pages/research.html";
|
2015-03-16 14:39:52 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|