mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
17 lines
353 B
Nix
17 lines
353 B
Nix
{ stdenv, symlinkJoin, puredata, makeWrapper, plugins }:
|
|
|
|
let
|
|
puredataFlags = map (x: "-path ${x}/") plugins;
|
|
in symlinkJoin {
|
|
name = "puredata-with-plugins-${puredata.version}";
|
|
|
|
paths = [ puredata ] ++ plugins;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/pd \
|
|
--add-flags "${toString puredataFlags}"
|
|
'';
|
|
}
|