birdfont: fix build failure; birdfont,xmlbird: adopt, modernize, move to by-name (#508450)

This commit is contained in:
Weijia Wang
2026-04-13 17:23:38 +00:00
committed by GitHub
3 changed files with 48 additions and 45 deletions
@@ -1,24 +1,24 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
python3,
xmlbird,
autoPatchelfHook,
cairo,
fetchFromGitHub,
gdk-pixbuf,
libgee,
glib,
gtk3,
webkitgtk_4_1,
libnotify,
sqlite,
vala,
gobject-introspection,
gsettings-desktop-schemas,
wrapGAppsHook3,
autoPatchelfHook,
gtk3,
lib,
libgee,
libnotify,
nix-update-script,
pkg-config,
python3,
sqlite,
stdenv,
vala,
webkitgtk_4_1,
wrapGAppsHook3,
xmlbird,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -29,37 +29,40 @@ stdenv.mkDerivation (finalAttrs: {
owner = "johanmattssonm";
repo = "birdfont";
tag = "v${finalAttrs.version}";
sha256 = "sha256-7xVjY/yH7pMlUBpQc5Gb4t4My24Mx5KkARVp2KSr+Iw=";
hash = "sha256-7xVjY/yH7pMlUBpQc5Gb4t4My24Mx5KkARVp2KSr+Iw=";
};
nativeBuildInputs = [
python3
pkg-config
vala
gobject-introspection
wrapGAppsHook3
autoPatchelfHook
gobject-introspection
pkg-config
python3
vala
wrapGAppsHook3
];
buildInputs = [
xmlbird
libgee
cairo
gdk-pixbuf
glib
gsettings-desktop-schemas
gtk3
webkitgtk_4_1
libgee
libnotify
sqlite
gsettings-desktop-schemas
webkitgtk_4_1
xmlbird
];
postPatch = ''
substituteInPlace install.py \
--replace 'platform.version()' '"Nix"'
--replace-fail 'platform.version()' '"Nix"'
patchShebangs .
'';
# workaround gcc >= 14 incompatibilities
env.NIX_CFLAGS_COMPILE = "-std=gnu17 -Wno-error=incompatible-pointer-types";
buildPhase = "./build.py";
installPhase = "./install.py";
@@ -69,7 +72,8 @@ stdenv.mkDerivation (finalAttrs: {
meta = {
description = "Font editor which can generate fonts in TTF, EOT, SVG and BIRDFONT format";
homepage = "https://birdfont.org";
license = lib.licenses.gpl3;
maintainers = [ ];
license = lib.licenses.gpl3Plus;
mainProgram = "birdfont";
maintainers = with lib.maintainers; [ drawbu ];
};
})
@@ -1,38 +1,40 @@
{
lib,
stdenv,
fetchurl,
python3,
pkg-config,
vala,
glib,
gobject-introspection,
lib,
pkg-config,
python3,
stdenv,
vala,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "xmlbird";
version = "1.2.15";
src = fetchurl {
url = "https://birdfont.org/${pname}-releases/lib${pname}-${version}.tar.xz";
sha256 = "sha256-8GX4ijF+AxaGGFlSxRPOAoUezRG6592jOrifz/mWTRM=";
url = "https://birdfont.org/xmlbird-releases/libxmlbird-${finalAttrs.version}.tar.xz";
hash = "sha256-8GX4ijF+AxaGGFlSxRPOAoUezRG6592jOrifz/mWTRM=";
};
nativeBuildInputs = [
python3
pkg-config
vala
gobject-introspection
pkg-config
python3
vala
];
buildInputs = [ glib ];
postPatch = ''
substituteInPlace configure \
--replace 'platform.dist()[0]' '"nix"'
--replace-fail 'platform.version()' '"Nix"'
patchShebangs .
'';
configureFlags = [ "--cc=${stdenv.cc.targetPrefix}cc" ];
buildPhase = "./build.py";
installPhase = "./install.py";
@@ -40,7 +42,7 @@ stdenv.mkDerivation rec {
meta = {
description = "XML parser for Vala and C programs";
homepage = "https://birdfont.org/xmlbird.php";
license = lib.licenses.lgpl3;
maintainers = [ ];
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ drawbu ];
};
}
})
-3
View File
@@ -1950,9 +1950,6 @@ with pkgs;
binlore = callPackage ../development/tools/analysis/binlore { };
birdfont = callPackage ../tools/misc/birdfont { };
xmlbird = callPackage ../tools/misc/birdfont/xmlbird.nix { stdenv = gccStdenv; };
bmrsa = callPackage ../tools/security/bmrsa/11.nix { };
anystyle-cli = callPackage ../tools/misc/anystyle-cli { };