I’d like to build a package for, or at least install, sc3-plugins.
So far I’ve only tried to follow the sc3-plugins README, which does not address NixOS packaging. The README indicates one should first check out the source code for SuperCollider and sc3-plugins. I assumed the version of SuperCollider checked out should match the version installed on my system via nixpkgs, which is 3.11.2, so I specified that in the first of these two commands:
git clone -b 3.11.2-BigSur --recursive https://github.com/supercollider/sc3-plugins.git
git clone --recursive https://github.com/supercollider/supercollider.git
I installed fftw
and cmake
from nixpkgs. I then tried to run the steps in the sc3-plugins
README:
cd sc3-plugins
mkdir build && cd build
cmake -DSC_PATH=../../supercollider -DCMAKE_BUILD_TYPE=Release -DSUPERNOVA=ON ..
cmake --build . --config Release
sudo cmake --build . --config Release --target install
The fourth of those five commands was unable to find fftw
:
Linking CXX shared module NCAnalysisUGens_supernova.so
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: cannot find -lFFTW3F_LIBRARY-NOTFOUND
collect2: error: ld returned 1 exit status
make[2]: *** [source/CMakeFiles/NCAnalysisUGens_supernova.dir/build.make:208: source/NCAnalysisUGens_supernova.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:874: source/CMakeFiles/NCAnalysisUGens_supernova.dir/all] Error 2
make: *** [Makefile:159: all] Error 2
I see that, per its Wiki, NixOS makes finding C libraries weird. That’s about as much of that wiki article as I understood.
Any advice will be greatly appreciated.
(@asheshambasta, who has wrestled with sc3-plugins previously, may find this post of interest.)