summary refs log tree commit diff
path: root/pkgs/applications/audio/pd-plugins/timbreid/default.nix
blob: f8a25256bb07b62a418db566c08cd2b2e86860af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchurl, unzip, puredata }:

stdenv.mkDerivation rec {
  version = "0.6.0";
  name = "timbreid-${version}";

  src = fetchurl {
    url = "http://williambrent.conflations.com/pd/timbreID-${version}-src.zip";
    sha256 = "02rnkb0vpjxrr60c3hryv7zhyjpci2mi9dk27kjxpj5zp26gjk0p";
  };

  buildInputs = [ unzip puredata ];

  unpackPhase = ''
    unzip $src
    mv timbreID-0.6.0-src/tID/* .
    rm -rf timbreID-0.6.0-src/tID/
    rm -rf timbreID-0.6.0-src/INSTALL.txt
  '';

  installPhase = ''
    mkdir -p $out/
    cp -r *.pd $out/
    cp -r *.pd_linux $out/
    cp -r *.wav $out/
  '';

  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;
  };
}