solfege: migrate to pkgs/by-name, format with nixfmt-rfc-style

This commit is contained in:
Anthony ROUSSEL 2024-09-17 21:38:03 +02:00
parent 417bc18feb
commit 91beb4b016
6 changed files with 37 additions and 15 deletions

View File

@ -1,17 +1,34 @@
{ lib, fetchurl, gettext, pkg-config, texinfo, wrapGAppsHook3 {
, buildPythonApplication, pycairo, pygobject3 lib,
, gdk-pixbuf, gobject-introspection, gtk3, librsvg alsa-utils,
, alsa-utils, timidity, mpg123, vorbis-tools, csound, lilypond autoconf,
, automake, autoconf, txt2man automake,
csound,
fetchurl,
gdk-pixbuf,
gettext,
gobject-introspection,
gtk3,
librsvg,
lilypond,
mpg123,
pkg-config,
python3Packages,
texinfo,
timidity,
txt2man,
vorbis-tools,
wrapGAppsHook3,
}: }:
buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "solfege"; pname = "solfege";
version = "3.23.4"; version = "3.23.4";
format = "other";
src = fetchurl { src = fetchurl {
url = "https://alpha.gnu.org/gnu/solfege/solfege-${version}.tar.gz"; url = "https://alpha.gnu.org/gnu/solfege/solfege-${version}.tar.gz";
sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp"; hash = "sha256-t6JJxgGk5hpN76o9snxtM07tkYnwpQ808M/8Ttw+gWk=";
}; };
patches = [ patches = [
@ -27,15 +44,14 @@ buildPythonApplication rec {
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
automake
autoconf autoconf
automake
gdk-pixbuf gdk-pixbuf
gettext gettext
gobject-introspection
pkg-config pkg-config
texinfo texinfo
txt2man txt2man
gobject-introspection
wrapGAppsHook3 wrapGAppsHook3
]; ];
@ -44,7 +60,7 @@ buildPythonApplication rec {
librsvg librsvg
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = with python3Packages; [
pycairo pycairo
pygobject3 pygobject3
]; ];
@ -59,7 +75,11 @@ buildPythonApplication rec {
default.config default.config
''; '';
format = "other"; dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
enableParallelBuilding = true; enableParallelBuilding = true;
@ -68,7 +88,11 @@ buildPythonApplication rec {
homepage = "https://www.gnu.org/software/solfege/"; homepage = "https://www.gnu.org/software/solfege/";
license = licenses.gpl3Only; license = licenses.gpl3Only;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor orivej anthonyroussel ]; maintainers = with maintainers; [
bjornfor
orivej
anthonyroussel
];
mainProgram = "solfege"; mainProgram = "solfege";
}; };
} }

View File

@ -38066,8 +38066,6 @@ with pkgs;
nvd = callPackage ../tools/package-management/nvd { }; nvd = callPackage ../tools/package-management/nvd { };
solfege = python3Packages.callPackage ../misc/solfege { };
disnix = callPackage ../tools/package-management/disnix { }; disnix = callPackage ../tools/package-management/disnix { };
dysnomia = callPackage ../tools/package-management/disnix/dysnomia (config.disnix or { dysnomia = callPackage ../tools/package-management/disnix/dysnomia (config.disnix or {