3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/musescore/default.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, lib, fetchzip, cmake, pkgconfig
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
, portaudio, portmidi, qtbase, qtdeclarative, qtgraphicaleffects
, qtquickcontrols2, qtscript, qtsvg, qttools
, qtwebengine, qtxmlpatterns
2015-06-01 11:56:42 +01:00
}:
2014-09-12 11:14:14 +01:00
mkDerivation rec {
pname = "musescore";
2020-08-11 05:43:42 +01:00
version = "3.5.0";
2014-09-12 11:14:14 +01:00
src = fetchzip {
2020-08-11 05:43:42 +01:00
url = "https://github.com/musescore/MuseScore/releases/download/v3.5/MuseScore-${version}.zip";
sha256 = "0m598xh0s4f5m4l2ymy7g44bbvc14bcfi4gifhjnrg091rsk57c9";
stripRoot = false;
2014-09-12 11:14:14 +01:00
};
patches = [
./remove_qtwebengine_install_hack.patch
];
2015-06-01 11:56:42 +01:00
cmakeFlags = [
2020-08-11 05:43:42 +01:00
"-DUSE_SYSTEM_FREETYPE=ON"
];
qtWrapperArgs = [
# Work around crash on update from 3.4.2 to 3.5.0
# https://bugreports.qt.io/browse/QTBUG-85967
"--set QML_DISABLE_DISK_CACHE 1"
];
2015-10-17 04:42:40 +01:00
2015-06-01 11:56:42 +01:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
2018-05-21 08:44:50 +01:00
portaudio portmidi # tesseract
qtbase qtdeclarative qtgraphicaleffects qtquickcontrols2
qtscript qtsvg qttools qtwebengine qtxmlpatterns
2015-06-01 11:56:42 +01:00
];
2015-04-27 20:51:21 +01:00
2014-09-12 11:14:14 +01:00
meta = with stdenv.lib; {
2015-06-01 11:56:42 +01:00
description = "Music notation and composition software";
homepage = "https://musescore.org/";
2014-09-12 11:14:14 +01:00
license = licenses.gpl2;
maintainers = with maintainers; [ vandenoever turion ];
2014-09-12 11:14:14 +01:00
platforms = platforms.linux;
repositories.git = "https://github.com/musescore/MuseScore";
2014-09-12 11:14:14 +01:00
};
}