2018-05-21 07:44:50 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig
|
2015-06-27 07:17:52 +00:00
|
|
|
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
2018-05-21 07:44:50 +00:00
|
|
|
, portaudio, portmidi, qtbase, qtdeclarative, qtscript, qtsvg, qttools
|
2015-09-27 15:27:31 +00:00
|
|
|
, qtwebkit, qtxmlpatterns
|
2015-06-01 10:56:42 +00:00
|
|
|
}:
|
2014-09-12 10:14:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-27 19:51:21 +00:00
|
|
|
name = "musescore-${version}";
|
2018-07-13 07:43:29 +00:00
|
|
|
version = "2.3.1";
|
2014-09-12 10:14:14 +00:00
|
|
|
|
2018-05-21 07:44:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "musescore";
|
|
|
|
repo = "MuseScore";
|
|
|
|
rev = "v${version}";
|
2018-07-13 07:43:29 +00:00
|
|
|
sha256 = "00inrw9g8g34g74bhg5gp0rr5nydhjraiyn7vpl7kaqi5yzmhawd";
|
2014-09-12 10:14:14 +00:00
|
|
|
};
|
|
|
|
|
2015-06-01 10:56:42 +00:00
|
|
|
cmakeFlags = [
|
2018-05-21 07:44:50 +00:00
|
|
|
] ++ lib.optional (lib.versionAtLeast freetype.version "2.5.2") "-DUSE_SYSTEM_FREETYPE=ON";
|
2015-10-17 03:42:40 +00:00
|
|
|
|
2015-06-01 10:56:42 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2015-06-27 07:17:52 +00:00
|
|
|
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
2018-05-21 07:44:50 +00:00
|
|
|
portaudio portmidi # tesseract
|
|
|
|
qtbase qtdeclarative qtscript qtsvg qttools qtwebkit qtxmlpatterns
|
2015-06-01 10:56:42 +00:00
|
|
|
];
|
2015-04-27 19:51:21 +00:00
|
|
|
|
2014-09-12 10:14:14 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-01 10:56:42 +00:00
|
|
|
description = "Music notation and composition software";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://musescore.org/;
|
2014-09-12 10:14:14 +00:00
|
|
|
license = licenses.gpl2;
|
2018-05-21 07:44:50 +00:00
|
|
|
maintainers = with maintainers; [ vandenoever ];
|
2014-09-12 10:14:14 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
repositories.git = https://github.com/musescore/MuseScore;
|
|
|
|
};
|
|
|
|
}
|