mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
16 lines
351 B
Nix
16 lines
351 B
Nix
{ symlinkJoin, puredata, makeWrapper, plugins }:
|
|
|
|
let
|
|
puredataFlags = map (x: "-path ${x}/") plugins;
|
|
in symlinkJoin {
|
|
name = "puredata-with-plugins-${puredata.version}";
|
|
|
|
paths = [ puredata ] ++ plugins;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/pd \
|
|
--add-flags "${toString puredataFlags}"
|
|
'';
|
|
}
|