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