2015-10-17 05:42:40 +02:00
|
|
|
{ stdenv, fetchzip, cmake, pkgconfig
|
2015-06-27 09:17:52 +02:00
|
|
|
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
2017-06-16 22:00:14 +02:00
|
|
|
, portaudio, qtbase, qtdeclarative, qtscript, qtsvg, qttools
|
2015-09-27 17:27:31 +02:00
|
|
|
, qtwebkit, qtxmlpatterns
|
2015-06-01 12:56:42 +02:00
|
|
|
}:
|
2014-09-12 12:14:14 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-27 21:51:21 +02:00
|
|
|
name = "musescore-${version}";
|
2017-06-16 22:00:14 +02:00
|
|
|
version = "2.1.0";
|
2014-09-12 12:14:14 +02:00
|
|
|
|
2015-10-17 05:42:40 +02:00
|
|
|
src = fetchzip {
|
2015-04-27 21:51:21 +02:00
|
|
|
url = "https://github.com/musescore/MuseScore/archive/v${version}.tar.gz";
|
2017-06-16 22:00:14 +02:00
|
|
|
sha256 = "1rlxz2nzilz7n6c0affnjk2wcxl4b8949qxs0xi555gxg01kybls";
|
2014-09-12 12:14:14 +02:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "relro" "bindnow" ];
|
2016-02-12 17:21:42 +01:00
|
|
|
|
2015-06-01 12:56:42 +02: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 21:51:21 +02:00
|
|
|
];
|
2014-09-12 12:14:14 +02:00
|
|
|
|
2015-06-01 12:56:42 +02:00
|
|
|
preBuild = ''
|
|
|
|
make lrelease
|
2014-09-12 12:14:14 +02:00
|
|
|
'';
|
|
|
|
|
2015-10-17 05:42:40 +02:00
|
|
|
postBuild = ''
|
|
|
|
make manpages
|
|
|
|
'';
|
|
|
|
|
2015-06-01 12:56:42 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
2015-10-17 05:42:40 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-06-01 12:56:42 +02:00
|
|
|
buildInputs = [
|
2015-06-27 09:17:52 +02:00
|
|
|
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
2017-06-16 22:00:14 +02:00
|
|
|
portaudio qtbase qtdeclarative qtscript qtsvg qttools
|
2015-09-27 17:27:31 +02:00
|
|
|
qtwebkit qtxmlpatterns #tesseract
|
2015-06-01 12:56:42 +02:00
|
|
|
];
|
2015-04-27 21:51:21 +02:00
|
|
|
|
2014-09-12 12:14:14 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-01 12:56:42 +02:00
|
|
|
description = "Music notation and composition software";
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://musescore.org/;
|
2014-09-12 12:14:14 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2015-04-27 21:51:21 +02:00
|
|
|
maintainers = [ maintainers.vandenoever ];
|
2014-09-12 12:14:14 +02:00
|
|
|
repositories.git = https://github.com/musescore/MuseScore;
|
|
|
|
};
|
|
|
|
}
|