nixpkgs/pkgs/applications/audio/musescore/default.nix
Dmitry Kalinkin fc2a65308f
musescore: switch to QtWebEngine
Since version 3.0 it builds with QtWebEngine by default.
2019-01-04 19:43:23 -05:00

42 lines
1.2 KiB
Nix

{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
, portaudio, portmidi, qtbase, qtdeclarative, qtscript, qtsvg, qttools
, qtwebengine, qtxmlpatterns
}:
stdenv.mkDerivation rec {
name = "musescore-${version}";
version = "3.0";
src = fetchFromGitHub {
owner = "musescore";
repo = "MuseScore";
rev = "v${version}";
sha256 = "0g8n8xpw5d6wh8bwbvy12sinl9i0ir009sr28i4izr28lr4x8v50";
};
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 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 ];
platforms = platforms.linux;
repositories.git = https://github.com/musescore/MuseScore;
};
}