nixpkgs/pkgs/applications/audio/musescore/default.nix
worldofpeace bafa7b0c03 musescore: fetch from download.musescore.com
They noted in https://github.com/musescore/MuseScore/releases/tag/v3.0.1
that the revision number in mscore/revision.h was incorrect in the autogenerated
github asset.
2019-01-28 18:07:54 +00:00

40 lines
1.2 KiB
Nix

{ stdenv, lib, fetchzip, cmake, pkgconfig
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
, portaudio, portmidi, qtbase, qtdeclarative, qtscript, qtsvg, qttools
, qtwebengine, qtxmlpatterns
}:
stdenv.mkDerivation rec {
name = "musescore-${version}";
version = "3.0.1";
src = fetchzip {
url = "https://download.musescore.com/releases/MuseScore-${version}/MuseScore-${version}.zip";
sha256 = "1l9djxq5hdfqiya2jwcag7qq4dhmb9qcv68y27dlza19imrnim80";
stripRoot = false;
};
patches = [
./remove_qtwebengine_install_hack.patch
];
cmakeFlags = [
] ++ lib.optional (lib.versionAtLeast freetype.version "2.5.2") "-DUSE_SYSTEM_FREETYPE=ON";
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
portaudio portmidi # tesseract
qtbase qtdeclarative qtscript qtsvg qttools qtwebengine qtxmlpatterns
];
meta = with stdenv.lib; {
description = "Music notation and composition software";
homepage = https://musescore.org/;
license = licenses.gpl2;
maintainers = with maintainers; [ vandenoever ];
platforms = platforms.linux;
repositories.git = https://github.com/musescore/MuseScore;
};
}