nixpkgs/pkgs/applications/audio/faust/faust2sc.nix

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

33 lines
743 B
Nix
Raw Normal View History

2023-04-02 22:25:48 +02:00
{ faust
, baseName ? "faust2sc"
, supercollider
, makeWrapper
, python3
, stdenv
}@args:
let
faustDefaults = faust.faust2ApplBase
(args // {
baseName = "${baseName}.py";
});
in
stdenv.mkDerivation (faustDefaults // {
nativeBuildInputs = [ makeWrapper ];
propagatedBuildInputs = [ python3 faust supercollider ];
postInstall = ''
mv "$out/bin/${baseName}.py" "$out"/bin/${baseName}
'';
postFixup = ''
wrapProgram "$out"/bin/${baseName} \
--append-flags "--import-dir ${faust}/share/faust" \
--append-flags "--architecture-dir ${faust}/share/faust" \
--append-flags "--architecture-dir ${faust}/include" \
--append-flags "-p ${supercollider}" \
2023-04-02 22:25:48 +02:00
--prefix PATH : "$PATH"
'';
})