nixpkgs/pkgs/applications/audio/pd-plugins/timbreid/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

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

to pname
2019-08-15 13:41:18 +01:00

46 lines
1003 B
Nix

{ stdenv, fetchurl, unzip, puredata, fftw }:
stdenv.mkDerivation rec {
version = "0.7.0";
pname = "timbreid";
src = fetchurl {
url = "http://williambrent.conflations.com/pd/timbreID-${version}-src.zip";
sha256 = "14k2xk5zrzrw1zprdbwx45hrlc7ck8vq4drpd3l455i5r8yk4y6b";
};
buildInputs = [ unzip puredata fftw ];
unpackPhase = ''
mkdir source
cd source
unzip $src
'';
buildPhase = ''
make tIDLib.o all
'';
installPhase = ''
mkdir -p $out/
cp -r *.pd $out/
cp -r *.pd_linux $out/
cp -r audio/ $out/
cp -r data/ $out/
cp -r doc/ $out/
'';
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;
};
}