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

41 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, lib, fetchzip, cmake, pkgconfig
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
2018-05-21 09:44:50 +02:00
, portaudio, portmidi, qtbase, qtdeclarative, qtscript, qtsvg, qttools
, qtwebengine, qtxmlpatterns
2015-06-01 12:56:42 +02:00
}:
2014-09-12 12:14:14 +02:00
mkDerivation rec {
pname = "musescore";
2020-03-18 19:45:15 +01:00
version = "3.4.2";
2014-09-12 12:14:14 +02:00
src = fetchzip {
2019-09-02 13:59:33 +02:00
url = "https://github.com/musescore/MuseScore/releases/download/v${version}/MuseScore-${version}.zip";
2020-03-18 19:45:15 +01:00
sha256 = "1laskvp40dncs12brkgvk7wl0qrvzy52rn7nf3b67ps1vmd130gp";
stripRoot = false;
2014-09-12 12:14:14 +02:00
};
patches = [
./remove_qtwebengine_install_hack.patch
];
2015-06-01 12:56:42 +02:00
cmakeFlags = [
2018-05-21 09:44:50 +02:00
] ++ lib.optional (lib.versionAtLeast freetype.version "2.5.2") "-DUSE_SYSTEM_FREETYPE=ON";
2015-10-17 05:42:40 +02:00
2015-06-01 12:56:42 +02:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
2018-05-21 09:44:50 +02:00
portaudio portmidi # tesseract
qtbase qtdeclarative qtscript qtsvg qttools qtwebengine qtxmlpatterns
2015-06-01 12:56:42 +02:00
];
2015-04-27 21:51:21 +02:00
2014-09-12 12:14:14 +02:00
meta = with stdenv.lib; {
2015-06-01 12:56:42 +02:00
description = "Music notation and composition software";
homepage = "https://musescore.org/";
2014-09-12 12:14:14 +02:00
license = licenses.gpl2;
2018-05-21 09:44:50 +02:00
maintainers = with maintainers; [ vandenoever ];
2014-09-12 12:14:14 +02:00
platforms = platforms.linux;
repositories.git = "https://github.com/musescore/MuseScore";
2014-09-12 12:14:14 +02:00
};
}