2021-01-25 08:26:54 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
2020-05-30 07:45:57 +00:00
|
|
|
, portaudio, portmidi, qtbase, qtdeclarative, qtgraphicaleffects
|
|
|
|
, qtquickcontrols2, qtscript, qtsvg, qttools
|
2019-01-05 00:43:23 +00:00
|
|
|
, qtwebengine, qtxmlpatterns
|
2021-02-27 01:26:02 +00:00
|
|
|
, nixosTests
|
2015-06-01 10:56:42 +00:00
|
|
|
}:
|
2014-09-12 10:14:14 +00:00
|
|
|
|
2019-08-12 17:01:34 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "musescore";
|
2021-03-11 02:56:02 +00:00
|
|
|
version = "3.6.2";
|
2014-09-12 10:14:14 +00:00
|
|
|
|
2020-11-01 18:56:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "musescore";
|
|
|
|
repo = "MuseScore";
|
|
|
|
rev = "v${version}";
|
2021-03-11 02:56:02 +00:00
|
|
|
sha256 = "sha256-GBGAD/qdOhoNfDzI+O0EiKgeb86GFJxpci35T6tZ+2s=";
|
2014-09-12 10:14:14 +00:00
|
|
|
};
|
|
|
|
|
2019-01-05 00:43:23 +00:00
|
|
|
patches = [
|
|
|
|
./remove_qtwebengine_install_hack.patch
|
|
|
|
];
|
|
|
|
|
2015-06-01 10:56:42 +00:00
|
|
|
cmakeFlags = [
|
2020-12-08 16:35:58 +00:00
|
|
|
"-DMUSESCORE_BUILD_CONFIG=release"
|
2020-08-11 04:43:42 +00:00
|
|
|
"-DUSE_SYSTEM_FREETYPE=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
2021-08-27 19:17:33 +00:00
|
|
|
# MuseScore JACK backend loads libjack at runtime.
|
|
|
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libjack2 ]}"
|
2021-11-26 07:38:06 +00:00
|
|
|
# There are some issues with using the wayland backend, see:
|
|
|
|
# https://musescore.org/en/node/321936
|
|
|
|
"--set QT_QPA_PLATFORM xcb"
|
2020-08-11 04:43:42 +00:00
|
|
|
];
|
2015-10-17 03:42:40 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2015-06-01 10:56:42 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
2018-05-21 07:44:50 +00:00
|
|
|
portaudio portmidi # tesseract
|
2020-05-30 07:45:57 +00:00
|
|
|
qtbase qtdeclarative qtgraphicaleffects qtquickcontrols2
|
|
|
|
qtscript qtsvg qttools qtwebengine qtxmlpatterns
|
2015-06-01 10:56:42 +00:00
|
|
|
];
|
2015-04-27 19:51:21 +00:00
|
|
|
|
2021-02-27 01:26:02 +00:00
|
|
|
passthru.tests = nixosTests.musescore;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-06-01 10:56:42 +00:00
|
|
|
description = "Music notation and composition software";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://musescore.org/";
|
2014-09-12 10:14:14 +00:00
|
|
|
license = licenses.gpl2;
|
2021-11-26 07:38:06 +00:00
|
|
|
maintainers = with maintainers; [ vandenoever turion doronbehar ];
|
2014-09-12 10:14:14 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|