2015-10-17 04:42:40 +01:00
|
|
|
{ stdenv, fetchzip, cmake, pkgconfig
|
2015-06-27 08:17:52 +01:00
|
|
|
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
2015-09-27 16:27:31 +01:00
|
|
|
, portaudio, qtbase, qtdeclarative, qtenginio, qtscript, qtsvg, qttools
|
|
|
|
, qtwebkit, qtxmlpatterns
|
2015-06-01 11:56:42 +01:00
|
|
|
}:
|
2014-09-12 11:14:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-27 20:51:21 +01:00
|
|
|
name = "musescore-${version}";
|
2015-10-17 04:42:40 +01:00
|
|
|
version = "2.0.2";
|
2014-09-12 11:14:14 +01:00
|
|
|
|
2015-10-17 04:42:40 +01:00
|
|
|
src = fetchzip {
|
2015-04-27 20:51:21 +01:00
|
|
|
url = "https://github.com/musescore/MuseScore/archive/v${version}.tar.gz";
|
2015-10-17 04:42:40 +01:00
|
|
|
sha256 = "12a83v4i830gj76z5744034y1vvwzgy27mjbjp508yh9bd328yqw";
|
2014-09-12 11:14:14 +01:00
|
|
|
};
|
|
|
|
|
2015-06-01 11:56:42 +01:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DAEOLUS=OFF"
|
|
|
|
"-DZERBERUS=ON"
|
|
|
|
"-DOSC=ON=ON"
|
|
|
|
"-DOMR=OFF" # TODO: add OMR support, CLEF_G not declared error
|
|
|
|
"-DOCR=OFF" # Not necessary without OMR
|
|
|
|
"-DSOUNDFONT3=ON"
|
|
|
|
"-DHAS_AUDIOFILE=ON"
|
|
|
|
"-DBUILD_JACK=ON"
|
2015-04-27 20:51:21 +01:00
|
|
|
];
|
2014-09-12 11:14:14 +01:00
|
|
|
|
2015-06-01 11:56:42 +01:00
|
|
|
preBuild = ''
|
|
|
|
make lupdate
|
|
|
|
make lrelease
|
2014-09-12 11:14:14 +01:00
|
|
|
'';
|
|
|
|
|
2015-10-17 04:42:40 +01:00
|
|
|
postBuild = ''
|
|
|
|
make manpages
|
|
|
|
'';
|
|
|
|
|
2015-06-01 11:56:42 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
2015-10-17 04:42:40 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-06-01 11:56:42 +01:00
|
|
|
buildInputs = [
|
2015-06-27 08:17:52 +01:00
|
|
|
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
2015-09-27 16:27:31 +01:00
|
|
|
portaudio qtbase qtdeclarative qtenginio qtscript qtsvg qttools
|
|
|
|
qtwebkit qtxmlpatterns #tesseract
|
2015-06-01 11:56:42 +01:00
|
|
|
];
|
2015-04-27 20:51:21 +01:00
|
|
|
|
2014-09-12 11:14:14 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-01 11:56:42 +01:00
|
|
|
description = "Music notation and composition software";
|
2014-09-12 11:14:14 +01:00
|
|
|
homepage = http://musescore.org/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2015-04-27 20:51:21 +01:00
|
|
|
maintainers = [ maintainers.vandenoever ];
|
2014-09-12 11:14:14 +01:00
|
|
|
repositories.git = https://github.com/musescore/MuseScore;
|
|
|
|
};
|
|
|
|
}
|