2016-04-26 14:26:23 +02:00
|
|
|
{ stdenv, symlinkJoin, puredata, makeWrapper, plugins }:
|
2015-03-16 15:39:52 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
puredataFlags = map (x: "-path ${x}/") plugins;
|
2016-04-26 14:26:23 +02:00
|
|
|
in symlinkJoin {
|
|
|
|
name = "puredata-with-plugins-${puredata.version}";
|
2015-03-16 15:39:52 +01:00
|
|
|
|
|
|
|
paths = [ puredata ] ++ plugins;
|
|
|
|
|
2016-04-26 14:26:23 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2015-03-16 15:39:52 +01:00
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/pd \
|
|
|
|
--add-flags "${toString puredataFlags}"
|
|
|
|
'';
|
2016-04-26 14:26:23 +02:00
|
|
|
}
|