nixpkgs/pkgs/applications/audio/puredata/wrapper.nix

17 lines
345 B
Nix
Raw Normal View History

{ symlinkJoin, puredata, makeWrapper, plugins }:
let
puredataFlags = map (x: "-path ${x}/") plugins;
2016-04-26 12:26:23 +00:00
in symlinkJoin {
name = "puredata-with-plugins-${puredata.version}";
paths = [ puredata ] ++ plugins;
2016-04-26 12:26:23 +00:00
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/pd \
--add-flags "${toString puredataFlags}"
'';
2016-04-26 12:26:23 +00:00
}