mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config
|
|
, 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.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "musescore";
|
|
repo = "MuseScore";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0M+idYnrgXyH6WLp+2jIYRnFzTB93v+dG1XHmSNyPjE=";
|
|
};
|
|
|
|
patches = [
|
|
./remove_qtwebengine_install_hack.patch
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DMUSESCORE_BUILD_CONFIG=release"
|
|
"-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"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
|
portaudio portmidi # tesseract
|
|
qtbase qtdeclarative qtgraphicaleffects qtquickcontrols2
|
|
qtscript qtsvg qttools qtwebengine qtxmlpatterns
|
|
];
|
|
|
|
meta = with 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";
|
|
};
|
|
}
|