mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
Merge pull request #224395 from olafklingt/faust
faust: make faust2sc script available
This commit is contained in:
commit
4a5540b6a5
@ -50,7 +50,7 @@ let
|
||||
|
||||
|
||||
passthru = {
|
||||
inherit wrap wrapWithBuildEnv;
|
||||
inherit wrap wrapWithBuildEnv faust2ApplBase;
|
||||
};
|
||||
|
||||
|
||||
|
38
pkgs/applications/audio/faust/faust2sc.nix
Normal file
38
pkgs/applications/audio/faust/faust2sc.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ 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 = ''
|
||||
# export parts of the build environment
|
||||
mkdir "$out"/include
|
||||
# until pr #887 is merged and released in faust we need to link the header folders
|
||||
ln -s "${supercollider}"/include/SuperCollider/plugin_interface "$out"/include/plugin_interface
|
||||
ln -s "${supercollider}"/include/SuperCollider/common "$out"/include/common
|
||||
ln -s "${supercollider}"/include/SuperCollider/server "$out"/include/server
|
||||
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 $out" \
|
||||
--prefix PATH : "$PATH"
|
||||
'';
|
||||
})
|
@ -38602,6 +38602,8 @@ with pkgs;
|
||||
|
||||
faust2csound = callPackage ../applications/audio/faust/faust2csound.nix { };
|
||||
|
||||
faust2sc = callPackage ../applications/audio/faust/faust2sc.nix { };
|
||||
|
||||
faust2firefox = callPackage ../applications/audio/faust/faust2firefox.nix { };
|
||||
|
||||
faust2jack = callPackage ../applications/audio/faust/faust2jack.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user