git.iko.soy/typeable/nixpkgs
on master help sign in
sonic-pi: 3.1.0 -> 3.2.2
8bbe246Jos van Bakel
pkgs/applications/audio/sonic-pi/default.nix+24−19
@@ -4,7 +4,6 @@
4, fetchFromGitHub
4, fetchFromGitHub
5, fftwSinglePrec
5, fftwSinglePrec
6, ruby
6, ruby
7−, libffi
8, aubio
7, aubio
9, cmake
8, cmake
10, pkgconfig
9, pkgconfig
@@ -12,7 +11,6 @@
12, bash
11, bash
13, jack2Full
12, jack2Full
14, supercollider
13, supercollider
15−, qscintilla
16, qwt
14, qwt
17, osmid
15, osmid
18}:
16}:
@@ -24,14 +22,14 @@ let
24in
22in
25
23
26mkDerivation rec {
24mkDerivation rec {
27− version = "3.1.0";
25+ version = "3.2.2";
28 pname = "sonic-pi";
26 pname = "sonic-pi";
29
27
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";
35 };
33 };
36
34
37 buildInputs = [
35 buildInputs = [
@@ -39,10 +37,8 @@ mkDerivation rec {
39 cmake
37 cmake
40 pkgconfig
38 pkgconfig
41 qtbase
39 qtbase
42− qscintilla
43 qwt
40 qwt
44 ruby
41 ruby
45− libffi
46 aubio
42 aubio
47 supercollider_single_prec
43 supercollider_single_prec
48 boost
44 boost
@@ -71,23 +67,34 @@ mkDerivation rec {
71 popd
67 popd
72
68
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
76
72
77− substituteInPlace SonicPi.pro \
73+ lrelease lang/*.ts
78− --replace "LIBS += -lrt -lqt5scintilla2" \
79− "LIBS += -lrt -lqscintilla2 -lqwt"
80
74
81− lrelease SonicPi.pro
75+ mkdir build
82− qmake SonicPi.pro
76+ pushd build
83−
77+ cmake -G "Unix Makefiles" ..
84− make
78+ make
79+ popd
85 popd
80 popd
86 '';
81 '';
87
82
88 installPhase = ''
83 installPhase = ''
89 runHook preInstall
84 runHook preInstall
90− cp -r . $out
85+
86+ mkdir $out
87+ cp -r {bin,etc} $out/
88+
89+ # Copy server whole.
90+ mkdir -p $out/app
91+ cp -r app/server $out/app/
92+
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
97+
91 runHook postInstall
98 runHook postInstall
92 '';
99 '';
93
100
@@ -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
109− broken = true;
110 };
115 };
111}
116}