nixpkgs/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 07:44:50 +00:00
, portaudio, portmidi, qtbase, qtdeclarative, qtscript, qtsvg, qttools
, qtwebengine, qtxmlpatterns
2015-06-01 10:56:42 +00:00
}:
2014-09-12 10:14:14 +00:00
mkDerivation rec {
pname = "musescore";
version = "3.0.5";
2014-09-12 10:14:14 +00:00
src = fetchzip {
url = "https://download.musescore.com/releases/MuseScore-${version}/MuseScore-${version}.zip";
sha256 = "1pbf6v0l3nixxr8k5igwhj09wnqvw92av6q6yjrbb3kyjh5br2d8";
stripRoot = false;
2014-09-12 10:14:14 +00:00
};
patches = [
./remove_qtwebengine_install_hack.patch
];
2015-06-01 10:56:42 +00:00
cmakeFlags = [
2018-05-21 07:44:50 +00:00
] ++ lib.optional (lib.versionAtLeast freetype.version "2.5.2") "-DUSE_SYSTEM_FREETYPE=ON";
2015-10-17 03:42:40 +00:00
2015-06-01 10:56:42 +00:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
2018-05-21 07:44:50 +00:00
portaudio portmidi # tesseract
qtbase qtdeclarative qtscript qtsvg qttools qtwebengine qtxmlpatterns
2015-06-01 10:56:42 +00:00
];
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";
homepage = https://musescore.org/;
2014-09-12 10:14:14 +00:00
license = licenses.gpl2;
2018-05-21 07:44:50 +00:00
maintainers = with maintainers; [ vandenoever ];
2014-09-12 10:14:14 +00:00
platforms = platforms.linux;
repositories.git = https://github.com/musescore/MuseScore;
};
}