Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # a simple package def to build sc3plugins.nix
- { stdenv
- , cmake
- , supercollider
- , fftw
- , libsndfile
- , fetchgit
- }:
- let name = "sc3plugins";
- in stdenv.mkDerivation rec {
- inherit name;
- # https://github.com/supercollider/sc3-plugins/commit/7d08fab319198f27a5368307d0e9833c41b8053b
- # date = "2020-06-05T09=30=19-07:00";
- src = fetchgit {
- url = "git@github.com:supercollider/sc3-plugins.git";
- rev = "7d08fab319198f27a5368307d0e9833c41b8053b";
- sha256 = "0qxn1dx9ccb5bkxx0mj2nxh5iqvk3xcx23rclqbc3kxv6gn41rwl";
- fetchSubmodules = true;
- };
- buildInputs = [ cmake supercollider fftw libsndfile ];
- cmakeFlags = [
- "-DSUPERNOVA=ON"
- "-DSC_PATH=${supercollider}/include/SuperCollider"
- "-DFFTW3F_LIBRARY=${fftw}/lib/"
- ];
- buildPhase = ''
- cmake .
- cmake --build . --config Release
- cmake --build . --config Release --target install
- '';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement