2020-04-24 23:36:52 +00:00
|
|
|
{ symlinkJoin, puredata, makeWrapper, plugins }:
|
|
|
|
|
|
|
|
let
|
|
|
|
puredataFlags = map (x: "-path ${x}/") plugins;
|
|
|
|
in symlinkJoin {
|
|
|
|
name = "puredata-with-plugins-${puredata.version}";
|
|
|
|
|
|
|
|
paths = [ puredata ] ++ plugins;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/pd \
|
|
|
|
--add-flags "${toString puredataFlags}"
|
|
|
|
'';
|
|
|
|
}
|