nixpkgs/pkgs/applications/audio/musescore/default.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2015-06-01 10:56:42 +00:00
{ stdenv, fetchurl, cmake, pkgconfig
, alsaLib, freetype, jack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
, portaudio, qt5 #, tesseract
}:
2014-09-12 10:14:14 +00:00
stdenv.mkDerivation rec {
2015-04-27 19:51:21 +00:00
name = "musescore-${version}";
2015-06-01 10:56:42 +00:00
version = "2.0.1";
2014-09-12 10:14:14 +00:00
src = fetchurl {
2015-04-27 19:51:21 +00:00
url = "https://github.com/musescore/MuseScore/archive/v${version}.tar.gz";
2015-06-01 10:56:42 +00:00
sha256 = "0n4xk35jggdq2dcizqjq1kdpclih4scpl93ymmxahvfa1vvwn5iw";
2014-09-12 10:14:14 +00:00
};
2015-06-01 10:56:42 +00:00
makeFlags = [
"PREFIX=$(out)"
];
cmakeFlags = [
"-DAEOLUS=OFF"
"-DZERBERUS=ON"
"-DOSC=ON=ON"
"-DOMR=OFF" # TODO: add OMR support, CLEF_G not declared error
"-DOCR=OFF" # Not necessary without OMR
"-DSOUNDFONT3=ON"
"-DHAS_AUDIOFILE=ON"
"-DBUILD_JACK=ON"
2015-04-27 19:51:21 +00:00
];
2014-09-12 10:14:14 +00:00
2015-06-01 10:56:42 +00:00
preBuild = ''
make lupdate
make lrelease
2014-09-12 10:14:14 +00:00
'';
2015-06-01 10:56:42 +00:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
alsaLib jack2 freetype lame libogg libpulseaudio libsndfile libvorbis
portaudio qt5.base qt5.declarative qt5.enginio qt5.script qt5.svg qt5.tools
qt5.webkit qt5.xmlpatterns #tesseract
];
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";
2014-09-12 10:14:14 +00:00
homepage = http://musescore.org/;
license = licenses.gpl2;
platforms = platforms.linux;
2015-04-27 19:51:21 +00:00
maintainers = [ maintainers.vandenoever ];
2014-09-12 10:14:14 +00:00
repositories.git = https://github.com/musescore/MuseScore;
};
}