2023-05-24 13:37:59 +00:00
|
|
|
{ appstream-glib
|
2024-09-19 14:19:46 +00:00
|
|
|
, blueprint-compiler
|
2023-05-24 13:37:59 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
|
|
|
, glib-networking
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk4
|
|
|
|
, gtksourceview5
|
|
|
|
, lib
|
|
|
|
, libadwaita
|
|
|
|
, libsoup_3
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2024-09-19 14:19:46 +00:00
|
|
|
, python3Packages
|
2023-05-24 13:37:59 +00:00
|
|
|
, stdenv
|
|
|
|
, wrapGAppsHook4
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "webfont-kit-generator";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.1.1";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rafaelmardojai";
|
|
|
|
repo = "webfont-kit-generator";
|
|
|
|
rev = finalAttrs.version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-RrmzHgRnpgQUNECgYA/AJfoxKpX1HQ5I1Pqjb3MK+P4=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
2024-09-19 14:19:46 +00:00
|
|
|
blueprint-compiler
|
2023-05-24 13:37:59 +00:00
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk4 # For gtk4-update-icon-cache
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib-networking
|
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
|
|
|
libadwaita
|
|
|
|
libsoup_3
|
|
|
|
(python3.withPackages (ps: with ps; [
|
2024-09-19 14:19:46 +00:00
|
|
|
brotli
|
2023-05-24 13:37:59 +00:00
|
|
|
fonttools
|
|
|
|
pygobject3
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
python3Packages.pygobject3
|
|
|
|
python3Packages.brotli
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Webfont Kit Generator is a simple utility that allows you to generate woff, woff2 and the necessary CSS boilerplate from non-web font formats (otf & ttf)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "webfontkitgenerator";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://apps.gnome.org/app/com.rafaelmardojai.WebfontKitGenerator";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ benediktbroich ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
})
|