nixpkgs/pkgs/applications/audio/pd-plugins/timbreid/default.nix

46 lines
989 B
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, 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";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.magnetophon ];
platforms = lib.platforms.linux;
};
}