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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
351 B
Nix
Raw Normal View History

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