mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig
|
|
, alsaLib, freetype, libjack2, lame, libogg, libpulseaudio, libsndfile, libvorbis
|
|
, portaudio, portmidi, qtbase, qtdeclarative, qtgraphicaleffects
|
|
, qtquickcontrols2, qtscript, qtsvg, qttools
|
|
, qtwebengine, qtxmlpatterns
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "musescore";
|
|
version = "3.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "musescore";
|
|
repo = "MuseScore";
|
|
rev = "v${version}";
|
|
sha256 = "VA0+npLUUXQJHalD01pmFTTum2Re7FiiyAwU1XvR93s=";
|
|
};
|
|
|
|
patches = [
|
|
./remove_qtwebengine_install_hack.patch
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DMUSESCORE_BUILD_CONFIG=release"
|
|
"-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"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [
|
|
alsaLib libjack2 freetype lame libogg libpulseaudio libsndfile libvorbis
|
|
portaudio portmidi # tesseract
|
|
qtbase qtdeclarative qtgraphicaleffects qtquickcontrols2
|
|
qtscript qtsvg qttools qtwebengine qtxmlpatterns
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Music notation and composition software";
|
|
homepage = "https://musescore.org/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ vandenoever turion ];
|
|
platforms = platforms.linux;
|
|
repositories.git = "https://github.com/musescore/MuseScore";
|
|
};
|
|
}
|