depot/third_party/nixpkgs/pkgs/development/interpreters/supercollider/wrapper.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

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;
}