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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.6 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config
, alsa-lib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
, portaudio, portmidi, qtbase, qtdeclarative, qtgraphicaleffects
, qtquickcontrols2, qtscript, qtsvg, qttools
, qtwebengine, qtxmlpatterns
2021-02-27 01:26:02 +00:00
, nixosTests
2015-06-01 11:56:42 +01:00
}:
2014-09-12 11:14:14 +01:00
mkDerivation rec {
pname = "musescore";
2021-03-11 02:56:02 +00:00
version = "3.6.2";
2014-09-12 11:14:14 +01:00
src = fetchFromGitHub {
owner = "musescore";
repo = "MuseScore";
rev = "v${version}";
2021-03-11 02:56:02 +00:00
sha256 = "sha256-GBGAD/qdOhoNfDzI+O0EiKgeb86GFJxpci35T6tZ+2s=";
2014-09-12 11:14:14 +01:00
};
patches = [
./remove_qtwebengine_install_hack.patch
];
2015-06-01 11:56:42 +01:00
cmakeFlags = [
"-DMUSESCORE_BUILD_CONFIG=release"
2020-08-11 05:43:42 +01:00
"-DUSE_SYSTEM_FREETYPE=ON"
];
qtWrapperArgs = [
# MuseScore JACK backend loads libjack at runtime.
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libjack2 ]}"
# There are some issues with using the wayland backend, see:
# https://musescore.org/en/node/321936
"--set-default QT_QPA_PLATFORM xcb"
2020-08-11 05:43:42 +01:00
];
2015-10-17 04:42:40 +01:00
nativeBuildInputs = [ cmake pkg-config ];
2015-06-01 11:56:42 +01:00
buildInputs = [
alsa-lib 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
2021-02-27 01:26:02 +00:00
passthru.tests = nixosTests.musescore;
meta = with 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 doronbehar ];
2014-09-12 11:14:14 +01:00
platforms = platforms.linux;
};
}