@@ -4,7 +4,6 @@
4, fetchFromGitHub
4, fetchFromGitHub
5, fftwSinglePrec
5, fftwSinglePrec
10, pkgconfig
9, pkgconfig
@@ -12,7 +11,6 @@
13, jack2Full
12, jack2Full
14, supercollider
13, supercollider
@@ -24,14 +22,14 @@ let
26mkDerivation rec {
24mkDerivation rec {
27− version = "3.1.0";
25+ version = "3.2.2";
28 pname = "sonic-pi";
26 pname = "sonic-pi";
30 src = fetchFromGitHub {
28 src = fetchFromGitHub {
31 owner = "samaaron";
29 owner = "samaaron";
32 repo = "sonic-pi";
30 repo = "sonic-pi";
33 rev = "v${version}";
31 rev = "v${version}";
34− sha256 = "0gi4a73szaa8iz5q1gxgpsnyvhhghcfqm6bfwwxbix4m5csbfgh9";
32+ sha256 = "1nlkpkpg9iz2hvf5pymvk6lqhpdpjbdrvr0hrnkc3ymj7llvf1cm";
37 buildInputs = [
35 buildInputs = [
@@ -39,10 +37,8 @@ mkDerivation rec {
47 supercollider_single_prec
43 supercollider_single_prec
@@ -71,23 +67,34 @@ mkDerivation rec {
73 pushd app/gui/qt
69 pushd app/gui/qt
74− cp -f ruby_help.tmpl ruby_help.h
70+ cp -f utils/ruby_help.tmpl utils/ruby_help.h
75− ../../server/ruby/bin/qt-doc.rb -o ruby_help.h
71+ ../../server/ruby/bin/qt-doc.rb -o utils/ruby_help.h
77− substituteInPlace SonicPi.pro \
73+ lrelease lang/*.ts
78− --replace "LIBS += -lrt -lqt5scintilla2" \
79− "LIBS += -lrt -lqscintilla2 -lqwt"
81− lrelease SonicPi.pro
75+ mkdir build
82− qmake SonicPi.pro
76+ pushd build
83−
77+ cmake -G "Unix Makefiles" ..
88 installPhase = ''
83 installPhase = ''
89 runHook preInstall
84 runHook preInstall
87+ cp -r {bin,etc} $out/
91+ cp -r app/server $out/app/
93+ # Copy only necessary files for the gui app.
94+ mkdir -p $out/app/gui/qt/build
95+ cp -r app/gui/qt/{book,fonts,help,html,images,image_source,info,lang,theme} $out/app/gui/qt/
96+ cp app/gui/qt/build/sonic-pi $out/app/gui/qt/build/sonic-pi
91 runHook postInstall
98 runHook postInstall
@@ -103,9 +110,7 @@ mkDerivation rec {
103 homepage = "https://sonic-pi.net/";
110 homepage = "https://sonic-pi.net/";
104 description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
111 description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
105 license = lib.licenses.mit;
112 license = lib.licenses.mit;
106− maintainers = with lib.maintainers; [ Phlogistique kamilchm ];
113+ maintainers = with lib.maintainers; [ Phlogistique kamilchm c0deaddict ];
107 platforms = lib.platforms.linux;
114 platforms = lib.platforms.linux;
108− # sonic-pi depends on ruby 2.4 which we don't support anymore