2020-11-01 10:56:15 -08:00
|
|
|
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig
|
2015-06-27 00:17:52 -07:00
|
|
|
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
2020-05-30 00:45:57 -07:00
|
|
|
, portaudio, portmidi, qtbase, qtdeclarative, qtgraphicaleffects
|
|
|
|
, qtquickcontrols2, qtscript, qtsvg, qttools
|
2019-01-04 16:43:23 -08:00
|
|
|
, qtwebengine, qtxmlpatterns
|
2015-06-01 03:56:42 -07:00
|
|
|
}:
|
2014-09-12 03:14:14 -07:00
|
|
|
|
2019-08-12 10:01:34 -07:00
|
|
|
mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "musescore";
|
2020-11-01 10:56:15 -08:00
|
|
|
version = "3.5.2";
|
2014-09-12 03:14:14 -07:00
|
|
|
|
2020-11-01 10:56:15 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "musescore";
|
|
|
|
repo = "MuseScore";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "VA0+npLUUXQJHalD01pmFTTum2Re7FiiyAwU1XvR93s=";
|
2014-09-12 03:14:14 -07:00
|
|
|
};
|
|
|
|
|
2019-01-04 16:43:23 -08:00
|
|
|
patches = [
|
|
|
|
./remove_qtwebengine_install_hack.patch
|
|
|
|
];
|
|
|
|
|
2015-06-01 03:56:42 -07:00
|
|
|
cmakeFlags = [
|
2020-12-08 08:35:58 -08:00
|
|
|
"-DMUSESCORE_BUILD_CONFIG=release"
|
2020-08-10 21:43:42 -07:00
|
|
|
"-DUSE_SYSTEM_FREETYPE=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
|
|
|
# Work around crash on update from 3.4.2 to 3.5.0
|
|
|
|
# https://bugreports.qt.io/browse/QTBUG-85967
|
|
|
|
"--set QML_DISABLE_DISK_CACHE 1"
|
|
|
|
];
|
2015-10-16 20:42:40 -07:00
|
|
|
|
2015-06-01 03:56:42 -07:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2015-06-27 00:17:52 -07:00
|
|
|
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
2018-05-21 00:44:50 -07:00
|
|
|
portaudio portmidi # tesseract
|
2020-05-30 00:45:57 -07:00
|
|
|
qtbase qtdeclarative qtgraphicaleffects qtquickcontrols2
|
|
|
|
qtscript qtsvg qttools qtwebengine qtxmlpatterns
|
2015-06-01 03:56:42 -07:00
|
|
|
];
|
2015-04-27 12:51:21 -07:00
|
|
|
|
2014-09-12 03:14:14 -07:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-01 03:56:42 -07:00
|
|
|
description = "Music notation and composition software";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://musescore.org/";
|
2014-09-12 03:14:14 -07:00
|
|
|
license = licenses.gpl2;
|
2020-04-19 03:56:52 -07:00
|
|
|
maintainers = with maintainers; [ vandenoever turion ];
|
2014-09-12 03:14:14 -07:00
|
|
|
platforms = platforms.linux;
|
2020-03-31 18:11:51 -07:00
|
|
|
repositories.git = "https://github.com/musescore/MuseScore";
|
2014-09-12 03:14:14 -07:00
|
|
|
};
|
|
|
|
}
|