2019-01-28 18:49:22 +01:00
|
|
|
{ stdenv, lib, fetchzip, cmake, pkgconfig
|
2015-06-27 09:17:52 +02:00
|
|
|
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
2018-05-21 09:44:50 +02:00
|
|
|
, portaudio, portmidi, qtbase, qtdeclarative, qtscript, qtsvg, qttools
|
2019-01-05 01:43:23 +01:00
|
|
|
, qtwebengine, qtxmlpatterns
|
2015-06-01 12:56:42 +02:00
|
|
|
}:
|
2014-09-12 12:14:14 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-27 21:51:21 +02:00
|
|
|
name = "musescore-${version}";
|
2019-03-26 19:28:20 +01:00
|
|
|
version = "3.0.5";
|
2014-09-12 12:14:14 +02:00
|
|
|
|
2019-01-28 18:49:22 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://download.musescore.com/releases/MuseScore-${version}/MuseScore-${version}.zip";
|
2019-03-26 19:28:20 +01:00
|
|
|
sha256 = "1pbf6v0l3nixxr8k5igwhj09wnqvw92av6q6yjrbb3kyjh5br2d8";
|
2019-01-28 18:49:22 +01:00
|
|
|
stripRoot = false;
|
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 = [
|
2018-05-21 09:44:50 +02:00
|
|
|
] ++ lib.optional (lib.versionAtLeast freetype.version "2.5.2") "-DUSE_SYSTEM_FREETYPE=ON";
|
2015-10-17 05:42:40 +02:00
|
|
|
|
2015-06-01 12:56:42 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2015-06-27 09:17:52 +02:00
|
|
|
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
2018-05-21 09:44:50 +02:00
|
|
|
portaudio portmidi # tesseract
|
2019-01-05 01:43:23 +01:00
|
|
|
qtbase qtdeclarative qtscript qtsvg qttools qtwebengine qtxmlpatterns
|
2015-06-01 12:56:42 +02:00
|
|
|
];
|
2015-04-27 21:51:21 +02:00
|
|
|
|
2014-09-12 12:14:14 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-01 12:56:42 +02:00
|
|
|
description = "Music notation and composition software";
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://musescore.org/;
|
2014-09-12 12:14:14 +02:00
|
|
|
license = licenses.gpl2;
|
2018-05-21 09:44:50 +02:00
|
|
|
maintainers = with maintainers; [ vandenoever ];
|
2014-09-12 12:14:14 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
repositories.git = https://github.com/musescore/MuseScore;
|
|
|
|
};
|
|
|
|
}
|