mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
2479dc0c63
a wrapper for puredata, plus packages for the following plugins: cyclone helmholtz maxlib mrpeach puremapping timbreid zexy
24 lines
680 B
Nix
24 lines
680 B
Nix
{ stdenv, buildEnv, puredata, makeWrapper, plugins }:
|
|
|
|
let
|
|
puredataFlags = map (x: "-path ${x}/") plugins;
|
|
drv = buildEnv {
|
|
name = "puredata-with-plugins-" + (builtins.parseDrvName puredata.name).version;
|
|
|
|
paths = [ puredata ] ++ plugins;
|
|
|
|
postBuild = ''
|
|
# TODO: This could be avoided if buildEnv could be forced to create all directories
|
|
if [ -L $out/bin ]; then
|
|
rm $out/bin
|
|
mkdir $out/bin
|
|
for i in ${puredata}/bin/*; do
|
|
ln -s $i $out/bin
|
|
done
|
|
fi
|
|
wrapProgram $out/bin/pd \
|
|
--add-flags "${toString puredataFlags}"
|
|
'';
|
|
};
|
|
in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; })
|