nixpkgs/pkgs/misc/solfege/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

75 lines
1.7 KiB
Nix

{ lib, fetchurl, gettext, pkg-config, texinfo, wrapGAppsHook3
, buildPythonApplication, pycairo, pygobject3
, gdk-pixbuf, gobject-introspection, gtk3, librsvg
, alsa-utils, timidity, mpg123, vorbis-tools, csound, lilypond
, automake, autoconf, txt2man
}:
buildPythonApplication rec {
pname = "solfege";
version = "3.23.4";
src = fetchurl {
url = "https://alpha.gnu.org/gnu/solfege/solfege-${version}.tar.gz";
sha256 = "0sc17vf4xz6gy0s0z9ghi68yskikdmyb4gdaxx6imrm40734k8mp";
};
patches = [
./css.patch
./menubar.patch
./texinfo.patch
./webbrowser.patch
];
preConfigure = ''
aclocal
autoconf
'';
nativeBuildInputs = [
automake
autoconf
gdk-pixbuf
gettext
pkg-config
texinfo
txt2man
gobject-introspection
wrapGAppsHook3
];
buildInputs = [
gtk3
librsvg
];
propagatedBuildInputs = [
pycairo
pygobject3
];
preBuild = ''
sed -i -e 's|wav_player=.*|wav_player=${alsa-utils}/bin/aplay|' \
-e 's|midi_player=.*|midi_player=${timidity}/bin/timidity|' \
-e 's|mp3_player=.*|mp3_player=${mpg123}/bin/mpg123|' \
-e 's|ogg_player=.*|ogg_player=${vorbis-tools}/bin/ogg123|' \
-e 's|csound=.*|csound=${csound}/bin/csound|' \
-e 's|lilypond-book=.*|lilypond-book=${lilypond}/bin/lilypond-book|' \
default.config
'';
format = "other";
enableParallelBuilding = true;
meta = with lib; {
description = "Ear training program";
homepage = "https://www.gnu.org/software/solfege/";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor orivej anthonyroussel ];
mainProgram = "solfege";
};
}