@@ -1,33 +1,31 @@
1−{ stdenv, fetchurl, makeWrapper, cmake, qt4, pkgconfig, alsaLib, portaudio, jack2, libsndfile}:
1+{ stdenv, fetchurl, makeWrapper, cmake, qt5, pkgconfig, alsaLib, portaudio, jack2
2+, lame, libsndfile, libvorbis }:
23
34stdenv.mkDerivation rec {
4− name = "musescore-1.3";
5+ name = "musescore-${version}";
6+ version = "2.0.0";
57
68 src = fetchurl {
7− url = "http://ftp.osuosl.org/pub/musescore/releases/MuseScore-1.3/mscore-1.3.tar.bz2";
8− sha256 = "a0b60cc892ac0266c58fc6392be72c0a21c3aa7fd0b6e4f1dddad1c8b36be683";
9+ url = "https://github.com/musescore/MuseScore/archive/v${version}.tar.gz";
10+ sha256 = "1a4fz9pqwz59brfa7qn61364hyd07lsq3lflkzn1w2q21d7xd20w";
911 };
1012
11− buildInputs = [ makeWrapper cmake qt4 pkgconfig alsaLib portaudio jack2 libsndfile ];
13+ buildInputs = [
14+ makeWrapper cmake qt5 pkgconfig alsaLib portaudio jack2 lame libsndfile libvorbis
15+ ];
1216
13− configurePhase = ''
14− cd mscore;
15− mkdir build;
16− cd build;
17− cmake -DCMAKE_INSTALL_PREFIX=$out -DQT_PLUGINS_DIR=$out/lib/qt4/plugins -DCMAKE_BUILD_TYPE=Release ..'';
18−
19− preBuild = ''make lrelease;'';
20−
21− postInstall = ''
22− wrapProgram $out/bin/mscore --prefix QT_PLUGIN_PATH : $out/lib/qt4/plugins
17+ patchPhase = ''
18+ sed s,"/usr/local",$out, -i Makefile
2319 '';
2420
21+ preBuild = "make lrelease";
22+
2523 meta = with stdenv.lib; {
2624 description = "Qt-based score editor";
2725 homepage = http://musescore.org/;
2826 license = licenses.gpl2;
2927 platforms = platforms.linux;
30− maintainers = [ stdenv.lib.maintainers.vandenoever ];
28+ maintainers = [ maintainers.vandenoever ];
3129 repositories.git = https://github.com/musescore/MuseScore;
3230 };
3331}