nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 faust,
3 baseName ? "faust2sc",
4 supercollider,
5 makeWrapper,
6 python3,
7 stdenv,
8}@args:
9let
10 faustDefaults = faust.faust2ApplBase (
11 args
12 // {
13 baseName = "${baseName}.py";
14 }
15 );
16in
17stdenv.mkDerivation (
18 faustDefaults
19 // {
20
21 nativeBuildInputs = [ makeWrapper ];
22
23 propagatedBuildInputs = [
24 python3
25 faust
26 supercollider
27 ];
28
29 postInstall = ''
30 mv "$out/bin/${baseName}.py" "$out"/bin/${baseName}
31 '';
32
33 postFixup = ''
34 wrapProgram "$out"/bin/${baseName} \
35 --append-flags "--import-dir ${faust}/share/faust" \
36 --append-flags "--architecture-dir ${faust}/share/faust" \
37 --append-flags "--architecture-dir ${faust}/include" \
38 --append-flags "-p ${supercollider}" \
39 --prefix PATH : "$PATH"
40 '';
41 }
42)