git.iko.soy/typeable/nixpkgs
on master help sign in
sonic-pi: 3.1.0 -> 3.2.2
commit8bbe246516a4fa45af23fba00166285f733d13fd authorJos van Bakel <jos@codeaddict.org> dateSun 8 Mar 2020, 12:16 (7 years ago) parent6653a35
1 file changed+24−19
pkgs/applications/audio/sonic-pi/default.nix+24−19
pkgs/applications/audio/sonic-pi/default.nix+24−19
@@ -4,7 +4,6 @@
44, fetchFromGitHub
55, fftwSinglePrec
66, ruby
7−, libffi
87, aubio
98, cmake
109, pkgconfig
@@ -12,7 +11,6 @@
1211, bash
1312, jack2Full
1413, supercollider
15−, qscintilla
1614, qwt
1715, osmid
1816}:
@@ -24,14 +22,14 @@ let
2422in
2523
2624mkDerivation rec {
27− version = "3.1.0";
25+ version = "3.2.2";
2826 pname = "sonic-pi";
2927
3028 src = fetchFromGitHub {
3129 owner = "samaaron";
3230 repo = "sonic-pi";
3331 rev = "v${version}";
34− sha256 = "0gi4a73szaa8iz5q1gxgpsnyvhhghcfqm6bfwwxbix4m5csbfgh9";
32+ sha256 = "1nlkpkpg9iz2hvf5pymvk6lqhpdpjbdrvr0hrnkc3ymj7llvf1cm";
3533 };
3634
3735 buildInputs = [
@@ -39,10 +37,8 @@ mkDerivation rec {
3937 cmake
4038 pkgconfig
4139 qtbase
42− qscintilla
4340 qwt
4441 ruby
45− libffi
4642 aubio
4743 supercollider_single_prec
4844 boost
@@ -71,23 +67,34 @@ mkDerivation rec {
7167 popd
7268
7369 pushd app/gui/qt
74− cp -f ruby_help.tmpl ruby_help.h
75− ../../server/ruby/bin/qt-doc.rb -o ruby_help.h
70+ cp -f utils/ruby_help.tmpl utils/ruby_help.h
71+ ../../server/ruby/bin/qt-doc.rb -o utils/ruby_help.h
7672
77− substituteInPlace SonicPi.pro \
78− --replace "LIBS += -lrt -lqt5scintilla2" \
79− "LIBS += -lrt -lqscintilla2 -lqwt"
73+ lrelease lang/*.ts
8074
81− lrelease SonicPi.pro
82− qmake SonicPi.pro
83−
84− make
75+ mkdir build
76+ pushd build
77+ cmake -G "Unix Makefiles" ..
78+ make
79+ popd
8580 popd
8681 '';
8782
8883 installPhase = ''
8984 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+
9198 runHook postInstall
9299 '';
93100
@@ -103,9 +110,7 @@ mkDerivation rec {
103110 homepage = "https://sonic-pi.net/";
104111 description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
105112 license = lib.licenses.mit;
106− maintainers = with lib.maintainers; [ Phlogistique kamilchm ];
113+ maintainers = with lib.maintainers; [ Phlogistique kamilchm c0deaddict ];
107114 platforms = lib.platforms.linux;
108− # sonic-pi depends on ruby 2.4 which we don't support anymore
109− broken = true;
110115 };
111116}