mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
19 lines
468 B
Nix
19 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;
|
|
}
|