SHARE
TWEET

Untitled

a guest Dec 2nd, 2018 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { stdenv, csound, fetchFromGitHub,
  2.   fetchurl, python, pythonQt, qmake,
  3.   qtwebengine, rtmidi, unzip }:
  4.  
  5. stdenv.mkDerivation rec {
  6.   name = "csound-qt-${version}";
  7.   version = "0.9.6-beta2";
  8.  
  9.   src = fetchFromGitHub {
  10.     owner = "CsoundQt";
  11.     repo = "CsoundQt";
  12.     rev = "${version}";
  13.     sha256 = "12jv7cvns3wj2npha0mvpn88kkkfsxsvhgzs2wrw04kbrvbhbffi";
  14.   };
  15.  
  16.   patches = [ ./rtmidipath.patch ];
  17.  
  18.   nativeBuildInputs = [ qmake qtwebengine ];
  19.  
  20.   buildInputs = [ csound rtmidi unzip ];
  21.  
  22.   qmakeFlags = [ "qcs.pro" "CONFIG+=rtmidi" "CONFIG+=pythonqt"
  23.                  "CSOUND_INCLUDE_DIR=${csound}/include/csound"
  24.                  "CSOUND_LIBRARY_DIR=${csound}/lib"
  25.                  "RTMIDI_DIR=${rtmidi.src}"
  26.                  "PYTHONQT_SRC_DIR=${pythonQt}/lib"
  27.                  "PYTHONQT_LIB_DIR=${pythonQt}/lib"
  28.                  "LIBS+=${pythonQt}/lib/libPythonQt-Qt5-Python2.7.so"
  29.                  "LIBS+=${pythonQt}/lib/libPythonQt_QtAll-Qt5-Python2.7.so"
  30.                  "INCLUDEPATH+=${pythonQt}/include/PythonQt"
  31.                  "INCLUDEPATH+=${python}/include/python2.7"
  32.                  "INSTALL_DIR=\\$out"
  33.                  "SHARE_DIR=\\$out/share"
  34.                  ];
  35.  
  36.   meta = with stdenv.lib; {
  37.     description = "CsoundQt is a frontend for Csound with editor, integrated help, widgets and other features.";
  38.     homepage = https://csoundqt.github.io/;
  39.     license = licenses.gpl2;
  40.     platforms = platforms.unix;
  41.     maintainers = with maintainers; [ hlolli ];
  42.   };
  43. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top