forked from mirrors/nixpkgs
7ed1ae0d6b
Although MuseScore builds and starts without these, it’s unusable because the left palette fails to render, with these errors: qrc:/qml/palettes/PalettesWidget.qml:21:1: module "QtQuick.Controls" version 2.1 is not installed or qrc:/qml/palettes/PalettesWidget.qml:47:5: Type PalettesWidgetHeader unavailable qrc:/qml/palettes/PalettesWidgetHeader.qml:37:5: Type StyledButton unavailable qrc:/qml/palettes/StyledButton.qml:22:1: module "QtGraphicalEffects" is not installed Signed-off-by: Anders Kaseorg <andersk@mit.edu>
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ stdenv, mkDerivation, lib, fetchzip, cmake, pkgconfig
|
|
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
|
, portaudio, portmidi, qtbase, qtdeclarative, qtgraphicaleffects
|
|
, qtquickcontrols2, qtscript, qtsvg, qttools
|
|
, qtwebengine, qtxmlpatterns
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "musescore";
|
|
version = "3.4.2";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/musescore/MuseScore/releases/download/v${version}/MuseScore-${version}.zip";
|
|
sha256 = "1laskvp40dncs12brkgvk7wl0qrvzy52rn7nf3b67ps1vmd130gp";
|
|
stripRoot = false;
|
|
};
|
|
|
|
patches = [
|
|
./remove_qtwebengine_install_hack.patch
|
|
];
|
|
|
|
cmakeFlags = [
|
|
] ++ lib.optional (lib.versionAtLeast freetype.version "2.5.2") "-DUSE_SYSTEM_FREETYPE=ON";
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [
|
|
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
|
portaudio portmidi # tesseract
|
|
qtbase qtdeclarative qtgraphicaleffects qtquickcontrols2
|
|
qtscript qtsvg qttools qtwebengine qtxmlpatterns
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Music notation and composition software";
|
|
homepage = "https://musescore.org/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ vandenoever turion ];
|
|
platforms = platforms.linux;
|
|
repositories.git = "https://github.com/musescore/MuseScore";
|
|
};
|
|
}
|