2015-03-16 14:39:52 +00:00
|
|
|
{ stdenv, fetchurl, puredata }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cyclone-${version}";
|
|
|
|
version = "0.1-alpha55";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-02-28 12:07:42 +00:00
|
|
|
url = "mirror://sourceforge/project/pure-data/libraries/cyclone/${name}.tar.gz";
|
2015-03-16 14:39:52 +00:00
|
|
|
sha256 = "1yys9xrlz09xgnqk2gqdl8vw6xj6l9d7km2lkihidgjql0jx5b5i";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ puredata ];
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-09 01:26:02 +00:00
|
|
|
|
2015-03-16 14:39:52 +00:00
|
|
|
patchPhase = ''
|
|
|
|
for file in `grep -r -l g_canvas.h`
|
|
|
|
do
|
|
|
|
sed -i 's|#include "g_canvas.h"|#include "${puredata}/include/pd/g_canvas.h"|g' $file
|
|
|
|
done
|
|
|
|
for file in `grep -r -l m_imp.h`
|
|
|
|
do
|
|
|
|
sed -i 's|#include "m_imp.h"|#include "${puredata}/include/pd/m_imp.h"|g' $file
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/cyclone
|
|
|
|
cp -r bin/* $out/cyclone
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2015-03-16 18:34:36 +00:00
|
|
|
description = "A library of PureData classes, bringing some level of compatibility between Max/MSP and Pd environments";
|
2015-03-16 14:39:52 +00:00
|
|
|
homepage = http://puredata.info/downloads/cyclone;
|
|
|
|
license = stdenv.lib.licenses.tcltk;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|