Skip to content

Commit

Permalink
sonic-pi: 3.1.0 -> 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
c0deaddict committed Jun 13, 2020
1 parent 6653a35 commit 8bbe246
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions pkgs/applications/audio/sonic-pi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
, fetchFromGitHub
, fftwSinglePrec
, ruby
, libffi
, aubio
, cmake
, pkgconfig
, boost
, bash
, jack2Full
, supercollider
, qscintilla
, qwt
, osmid
}:
Expand All @@ -24,25 +22,23 @@ let
in

mkDerivation rec {
version = "3.1.0";
version = "3.2.2";
pname = "sonic-pi";

src = fetchFromGitHub {
owner = "samaaron";
repo = "sonic-pi";
rev = "v${version}";
sha256 = "0gi4a73szaa8iz5q1gxgpsnyvhhghcfqm6bfwwxbix4m5csbfgh9";
sha256 = "1nlkpkpg9iz2hvf5pymvk6lqhpdpjbdrvr0hrnkc3ymj7llvf1cm";
};

buildInputs = [
bash
cmake
pkgconfig
qtbase
qscintilla
qwt
ruby
libffi
aubio
supercollider_single_prec
boost
Expand Down Expand Up @@ -71,23 +67,34 @@ mkDerivation rec {
popd
pushd app/gui/qt
cp -f ruby_help.tmpl ruby_help.h
../../server/ruby/bin/qt-doc.rb -o ruby_help.h
cp -f utils/ruby_help.tmpl utils/ruby_help.h
../../server/ruby/bin/qt-doc.rb -o utils/ruby_help.h
substituteInPlace SonicPi.pro \
--replace "LIBS += -lrt -lqt5scintilla2" \
"LIBS += -lrt -lqscintilla2 -lqwt"
lrelease lang/*.ts
lrelease SonicPi.pro
qmake SonicPi.pro
make
mkdir build
pushd build
cmake -G "Unix Makefiles" ..
make
popd
popd
'';

installPhase = ''
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
'';

Expand All @@ -103,9 +110,7 @@ mkDerivation rec {
homepage = "https://sonic-pi.net/";
description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Phlogistique kamilchm ];
maintainers = with lib.maintainers; [ Phlogistique kamilchm c0deaddict ];
platforms = lib.platforms.linux;
# sonic-pi depends on ruby 2.4 which we don't support anymore
broken = true;
};
}

0 comments on commit 8bbe246

Please sign in to comment.