Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
18 lines
468 B
Nix
18 lines
468 B
Nix
{ symlinkJoin, makeWrapper, supercollider, plugins }:
|
|
|
|
symlinkJoin {
|
|
name = "supercollider-with-plugins-${supercollider.version}";
|
|
paths = [ supercollider ] ++ plugins;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
for exe in $out/bin/*; do
|
|
wrapProgram $exe \
|
|
--set SC_PLUGIN_DIR "$out/lib/SuperCollider/plugins" \
|
|
--set SC_DATA_DIR "$out/share/SuperCollider"
|
|
done
|
|
'';
|
|
|
|
inherit (supercollider) pname version meta;
|
|
}
|