1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

musescore: 2.1.0 -> 2.2.1

Fixes #29519
This commit is contained in:
Peter Hoeg 2018-05-21 15:44:50 +08:00
parent 06a44b4944
commit 80bfd2f371
2 changed files with 13 additions and 34 deletions

View file

@ -1,59 +1,37 @@
{ stdenv, fetchzip, cmake, pkgconfig { stdenv, lib, fetchFromGitHub, cmake, pkgconfig
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis , alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
, portaudio, qtbase, qtdeclarative, qtscript, qtsvg, qttools , portaudio, portmidi, qtbase, qtdeclarative, qtscript, qtsvg, qttools
, qtwebkit, qtxmlpatterns , qtwebkit, qtxmlpatterns
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "musescore-${version}"; name = "musescore-${version}";
version = "2.1.0"; version = "2.2.1";
src = fetchzip { src = fetchFromGitHub {
url = "https://github.com/musescore/MuseScore/archive/v${version}.tar.gz"; owner = "musescore";
sha256 = "1rlxz2nzilz7n6c0affnjk2wcxl4b8949qxs0xi555gxg01kybls"; repo = "MuseScore";
rev = "v${version}";
sha256 = "00lwcsnpyiq9l9x11nm24mzf67xmhzjhwi4c3iqry6ayi9c4p4qs";
}; };
hardeningDisable = [ "relro" "bindnow" ];
makeFlags = [
"PREFIX=$(out)"
];
cmakeFlags = [ cmakeFlags = [
"-DAEOLUS=OFF" ] ++ lib.optional (lib.versionAtLeast freetype.version "2.5.2") "-DUSE_SYSTEM_FREETYPE=ON";
"-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"
];
preBuild = ''
make lrelease
'';
postBuild = ''
make manpages
'';
nativeBuildInputs = [ cmake pkgconfig ]; nativeBuildInputs = [ cmake pkgconfig ];
enableParallelBuilding = true;
buildInputs = [ buildInputs = [
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
portaudio qtbase qtdeclarative qtscript qtsvg qttools portaudio portmidi # tesseract
qtwebkit qtxmlpatterns #tesseract qtbase qtdeclarative qtscript qtsvg qttools qtwebkit qtxmlpatterns
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Music notation and composition software"; description = "Music notation and composition software";
homepage = https://musescore.org/; homepage = https://musescore.org/;
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ vandenoever ];
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.vandenoever ];
repositories.git = https://github.com/musescore/MuseScore; repositories.git = https://github.com/musescore/MuseScore;
}; };
} }

View file

@ -17096,6 +17096,7 @@ with pkgs;
else null; else null;
}; };
# TODO: we should probably merge these 2
musescore = musescore =
if stdenv.isDarwin then if stdenv.isDarwin then
callPackage ../applications/audio/musescore/darwin.nix { } callPackage ../applications/audio/musescore/darwin.nix { }