2021-01-25 08:26:54 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config
|
2015-06-27 08:17:52 +01:00
|
|
|
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
2020-05-30 08:45:57 +01:00
|
|
|
, portaudio, portmidi, qtbase, qtdeclarative, qtgraphicaleffects
|
|
|
|
, qtquickcontrols2, qtscript, qtsvg, qttools
|
2019-01-05 00:43:23 +00:00
|
|
|
, qtwebengine, qtxmlpatterns
|
2015-06-01 11:56:42 +01:00
|
|
|
}:
|
2014-09-12 11:14:14 +01:00
|
|
|
|
2019-08-12 18:01:34 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "musescore";
|
2021-01-20 12:05:09 +00:00
|
|
|
version = "3.6";
|
2014-09-12 11:14:14 +01:00
|
|
|
|
2020-11-01 18:56:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "musescore";
|
|
|
|
repo = "MuseScore";
|
|
|
|
rev = "v${version}";
|
2021-01-20 12:05:09 +00:00
|
|
|
sha256 = "sha256-0M+idYnrgXyH6WLp+2jIYRnFzTB93v+dG1XHmSNyPjE=";
|
2014-09-12 11:14:14 +01:00
|
|
|
};
|
|
|
|
|
2019-01-05 00:43:23 +00:00
|
|
|
patches = [
|
|
|
|
./remove_qtwebengine_install_hack.patch
|
|
|
|
];
|
|
|
|
|
2015-06-01 11:56:42 +01:00
|
|
|
cmakeFlags = [
|
2020-12-08 16:35:58 +00:00
|
|
|
"-DMUSESCORE_BUILD_CONFIG=release"
|
2020-08-11 05:43:42 +01: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-17 04:42:40 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
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
|
2018-05-21 08:44:50 +01:00
|
|
|
portaudio portmidi # tesseract
|
2020-05-30 08:45:57 +01:00
|
|
|
qtbase qtdeclarative qtgraphicaleffects qtquickcontrols2
|
|
|
|
qtscript qtsvg qttools qtwebengine qtxmlpatterns
|
2015-06-01 11:56:42 +01:00
|
|
|
];
|
2015-04-27 20:51:21 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-06-01 11:56:42 +01:00
|
|
|
description = "Music notation and composition software";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://musescore.org/";
|
2014-09-12 11:14:14 +01:00
|
|
|
license = licenses.gpl2;
|
2020-04-19 11:56:52 +01:00
|
|
|
maintainers = with maintainers; [ vandenoever turion ];
|
2014-09-12 11:14:14 +01:00
|
|
|
platforms = platforms.linux;
|
2020-04-01 02:11:51 +01:00
|
|
|
repositories.git = "https://github.com/musescore/MuseScore";
|
2014-09-12 11:14:14 +01:00
|
|
|
};
|
|
|
|
}
|