diff --git a/packages/apps/webfont-kit-generator/default.nix b/packages/apps/webfont-kit-generator/default.nix new file mode 100644 index 0000000..bec9025 --- /dev/null +++ b/packages/apps/webfont-kit-generator/default.nix @@ -0,0 +1,52 @@ +{ fetchFromGitHub +, meson, pkg-config, ninja +, python3 +, glib, appstream-glib , desktop-file-utils +, gobject-introspection, gtk4, libadwaita +, wrapGAppsHook +, gnome +, gtksourceview5 +, libsoup_3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "webfont-kit-generator"; + version = "1.0.3"; + format = "other"; + + src = fetchFromGitHub { + owner = "rafaelmardojai"; + repo = pname; + rev = version; + sha256 = "sha256-aD/1moWIiU4zpLTW+VHH9n/sj10vCZ8UzB2ey3mR0/k="; + }; + + nativeBuildInputs = [ + meson + pkg-config + ninja + appstream-glib + desktop-file-utils + gobject-introspection + wrapGAppsHook + ]; + + buildInputs = [ + glib + gtk4 + libadwaita + gtksourceview5 + libsoup_3 + gnome.adwaita-icon-theme + ]; + + propagatedBuildInputs = with python3.pkgs; [ + pygobject3 + fonttools + brotli + ]; + + postPatch = '' + patchShebangs build-aux/meson/postinstall.py + ''; +} diff --git a/packages/packages.nix b/packages/packages.nix index cce961a..261bf3a 100644 --- a/packages/packages.nix +++ b/packages/packages.nix @@ -76,5 +76,7 @@ in vaults = pkgs.callPackage ./apps/vaults { }; + webfont-kit-generator = pkgs.callPackage ./apps/webfont-kit-generator { }; + wike = sandbox ./nixpak/wike { }; }