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