2022-01-02 23:22:24 +00:00
|
|
|
{ lib, stdenv, buildPythonApplication, fetchFromGitHub, python3Packages, pyqtwebengine, lilypond }:
|
2014-10-24 13:35:30 +00:00
|
|
|
|
2020-01-03 17:24:59 +00:00
|
|
|
buildPythonApplication rec {
|
2020-03-29 10:34:50 +00:00
|
|
|
pname = "frescobaldi";
|
2023-02-01 16:25:46 +00:00
|
|
|
version = "3.2";
|
2014-10-24 13:35:30 +00:00
|
|
|
|
2018-03-31 15:03:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wbsoft";
|
|
|
|
repo = "frescobaldi";
|
|
|
|
rev = "v${version}";
|
2023-02-01 16:25:46 +00:00
|
|
|
sha256 = "sha256-q340ChF7VZcbLMW/nd1so7WScsPfbdeJUjTzsY5dkec=";
|
2014-10-24 13:35:30 +00:00
|
|
|
};
|
|
|
|
|
2018-12-12 00:40:28 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2023-02-01 16:25:46 +00:00
|
|
|
qpageview
|
|
|
|
lilypond
|
|
|
|
pygame
|
|
|
|
python-ly
|
|
|
|
sip_4
|
|
|
|
pyqt5
|
|
|
|
poppler-qt5
|
2020-01-03 17:24:59 +00:00
|
|
|
pyqtwebengine
|
2018-12-12 00:40:28 +00:00
|
|
|
];
|
2014-10-24 13:35:30 +00:00
|
|
|
|
2020-01-03 17:24:59 +00:00
|
|
|
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
|
|
|
|
|
2021-04-26 16:09:18 +00:00
|
|
|
# Needed because source is fetched from git
|
|
|
|
preBuild = ''
|
|
|
|
make -C i18n
|
|
|
|
make -C linux
|
|
|
|
'';
|
|
|
|
|
2018-03-31 15:03:17 +00:00
|
|
|
# no tests in shipped with upstream
|
|
|
|
doCheck = false;
|
2014-10-24 13:35:30 +00:00
|
|
|
|
2020-01-03 17:24:59 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
makeWrapperArgs = [
|
2023-02-01 16:25:46 +00:00
|
|
|
"\${qtWrapperArgs[@]}"
|
2020-01-03 17:24:59 +00:00
|
|
|
];
|
|
|
|
|
2018-03-31 15:03:17 +00:00
|
|
|
meta = with lib; {
|
2020-03-27 23:05:50 +00:00
|
|
|
homepage = "https://frescobaldi.org/";
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "A LilyPond sheet music text editor";
|
2014-10-24 13:35:30 +00:00
|
|
|
longDescription = ''
|
2020-10-26 04:08:40 +00:00
|
|
|
Powerful text editor with syntax highlighting and automatic completion,
|
2014-10-24 14:13:20 +00:00
|
|
|
Music view with advanced Point & Click, Midi player to proof-listen
|
|
|
|
LilyPond-generated MIDI files, Midi capturing to enter music,
|
|
|
|
Powerful Score Wizard to quickly setup a music score, Snippet Manager
|
|
|
|
to store and apply text snippets, templates or scripts, Use multiple
|
|
|
|
versions of LilyPond, automatically selects the correct version, Built-in
|
|
|
|
LilyPond documentation browser and built-in User Guide, Smart
|
|
|
|
layout-control functions like coloring specific objects in the PDF,
|
|
|
|
MusicXML import, Modern user iterface with configurable colors,
|
|
|
|
fonts and keyboard shortcuts
|
2014-10-24 13:35:30 +00:00
|
|
|
'';
|
2014-10-24 14:13:20 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-12-26 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ sepi ];
|
2014-10-24 14:13:20 +00:00
|
|
|
platforms = platforms.all;
|
2022-01-02 23:22:24 +00:00
|
|
|
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/frescobaldi.x86_64-darwin
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "frescobaldi";
|
2014-10-24 13:35:30 +00:00
|
|
|
};
|
|
|
|
}
|