Advertisement
Guest User

Untitled

a guest
Jul 18th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. # a simple package def to build sc3plugins.nix
  2. { stdenv
  3. , cmake
  4. , supercollider
  5. , fftw
  6. , libsndfile
  7. , fetchgit
  8. }:
  9. let name = "sc3plugins";
  10. in stdenv.mkDerivation rec {
  11.  
  12. inherit name;
  13.  
  14. # https://github.com/supercollider/sc3-plugins/commit/7d08fab319198f27a5368307d0e9833c41b8053b
  15. # date = "2020-06-05T09=30=19-07:00";
  16. src = fetchgit {
  17. url = "git@github.com:supercollider/sc3-plugins.git";
  18. rev = "7d08fab319198f27a5368307d0e9833c41b8053b";
  19. sha256 = "0qxn1dx9ccb5bkxx0mj2nxh5iqvk3xcx23rclqbc3kxv6gn41rwl";
  20. fetchSubmodules = true;
  21. };
  22.  
  23. buildInputs = [ cmake supercollider fftw libsndfile ];
  24.  
  25. cmakeFlags = [
  26. "-DSUPERNOVA=ON"
  27. "-DSC_PATH=${supercollider}/include/SuperCollider"
  28. "-DFFTW3F_LIBRARY=${fftw}/lib/"
  29. ];
  30.  
  31. buildPhase = ''
  32. cmake .
  33. cmake --build . --config Release
  34. cmake --build . --config Release --target install
  35. '';
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement