Unverified Commit cd7d6b34 authored by Clément's avatar Clément
Browse files

birdfont: modernize

parent 3a2e5330
Loading
Loading
Loading
Loading
+23 −22
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  python3,
  xmlbird,
  autoPatchelfHook,
  cairo,
  fetchFromGitHub,
  gdk-pixbuf,
  libgee,
  glib,
  gobject-introspection,
  gsettings-desktop-schemas,
  gtk3,
  webkitgtk_4_1,
  lib,
  libgee,
  libnotify,
  nix-update-script,
  pkg-config,
  python3,
  sqlite,
  stdenv,
  vala,
  gobject-introspection,
  gsettings-desktop-schemas,
  webkitgtk_4_1,
  wrapGAppsHook3,
  autoPatchelfHook,
  nix-update-script,
  xmlbird,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -29,33 +29,33 @@ stdenv.mkDerivation (finalAttrs: {
    owner = "johanmattssonm";
    repo = "birdfont";
    tag = "v${finalAttrs.version}";
    sha256 = "sha256-7xVjY/yH7pMlUBpQc5Gb4t4My24Mx5KkARVp2KSr+Iw=";
    hash = "sha256-7xVjY/yH7pMlUBpQc5Gb4t4My24Mx5KkARVp2KSr+Iw=";
  };

  nativeBuildInputs = [
    python3
    autoPatchelfHook
    gobject-introspection
    pkg-config
    python3
    vala
    gobject-introspection
    wrapGAppsHook3
    autoPatchelfHook
  ];
  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 .
  '';
@@ -72,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;
    license = lib.licenses.gpl3Plus;
    mainProgram = "birdfont";
    maintainers = with lib.maintainers; [ drawbu ];
  };
})