sonic-pi: 3.1.0 -> 3.2.2

gstqt5
Jos van Bakel 2020-03-08 12:16:05 +01:00
parent 6653a35faa
commit 8bbe246516
No known key found for this signature in database
GPG Key ID: 37589FBAE4DA2BC3
1 changed files with 24 additions and 19 deletions

View File

@ -4,7 +4,6 @@
, fetchFromGitHub , fetchFromGitHub
, fftwSinglePrec , fftwSinglePrec
, ruby , ruby
, libffi
, aubio , aubio
, cmake , cmake
, pkgconfig , pkgconfig
@ -12,7 +11,6 @@
, bash , bash
, jack2Full , jack2Full
, supercollider , supercollider
, qscintilla
, qwt , qwt
, osmid , osmid
}: }:
@ -24,14 +22,14 @@ let
in in
mkDerivation rec { mkDerivation rec {
version = "3.1.0"; version = "3.2.2";
pname = "sonic-pi"; pname = "sonic-pi";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "samaaron"; owner = "samaaron";
repo = "sonic-pi"; repo = "sonic-pi";
rev = "v${version}"; rev = "v${version}";
sha256 = "0gi4a73szaa8iz5q1gxgpsnyvhhghcfqm6bfwwxbix4m5csbfgh9"; sha256 = "1nlkpkpg9iz2hvf5pymvk6lqhpdpjbdrvr0hrnkc3ymj7llvf1cm";
}; };
buildInputs = [ buildInputs = [
@ -39,10 +37,8 @@ mkDerivation rec {
cmake cmake
pkgconfig pkgconfig
qtbase qtbase
qscintilla
qwt qwt
ruby ruby
libffi
aubio aubio
supercollider_single_prec supercollider_single_prec
boost boost
@ -71,23 +67,34 @@ mkDerivation rec {
popd popd
pushd app/gui/qt pushd app/gui/qt
cp -f ruby_help.tmpl ruby_help.h cp -f utils/ruby_help.tmpl utils/ruby_help.h
../../server/ruby/bin/qt-doc.rb -o ruby_help.h ../../server/ruby/bin/qt-doc.rb -o utils/ruby_help.h
substituteInPlace SonicPi.pro \ lrelease lang/*.ts
--replace "LIBS += -lrt -lqt5scintilla2" \
"LIBS += -lrt -lqscintilla2 -lqwt"
lrelease SonicPi.pro mkdir build
qmake SonicPi.pro pushd build
cmake -G "Unix Makefiles" ..
make make
popd
popd popd
''; '';
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
cp -r . $out
mkdir $out
cp -r {bin,etc} $out/
# Copy server whole.
mkdir -p $out/app
cp -r app/server $out/app/
# Copy only necessary files for the gui app.
mkdir -p $out/app/gui/qt/build
cp -r app/gui/qt/{book,fonts,help,html,images,image_source,info,lang,theme} $out/app/gui/qt/
cp app/gui/qt/build/sonic-pi $out/app/gui/qt/build/sonic-pi
runHook postInstall runHook postInstall
''; '';
@ -103,9 +110,7 @@ mkDerivation rec {
homepage = "https://sonic-pi.net/"; homepage = "https://sonic-pi.net/";
description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools"; description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Phlogistique kamilchm ]; maintainers = with lib.maintainers; [ Phlogistique kamilchm c0deaddict ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
# sonic-pi depends on ruby 2.4 which we don't support anymore
broken = true;
}; };
} }