nixpkgs/pkgs/by-name/fo/font-manager/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

90 lines
2.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, gettext
, python3
, pkg-config
, libxml2
, json-glib
, sqlite
, itstool
, yelp-tools
, vala
, gsettings-desktop-schemas
2024-07-09 13:08:28 +01:00
, gtk4
, adwaita-icon-theme
, desktop-file-utils
, nix-update-script
2024-07-09 13:08:28 +01:00
, wrapGAppsHook4
, gobject-introspection
# withWebkit enables the "webkit" feature, also known as Google Fonts
, withWebkit ? true, glib-networking, libsoup, webkitgtk
2016-03-04 09:43:11 +00:00
}:
stdenv.mkDerivation rec {
2019-01-19 18:51:21 +00:00
pname = "font-manager";
2024-07-09 13:08:28 +01:00
version = "0.9.0";
2016-03-04 09:43:11 +00:00
src = fetchFromGitHub {
owner = "FontManager";
repo = "font-manager";
rev = version;
2024-07-09 13:08:28 +01:00
hash = "sha256-nUFxjqUiL8zLfPJrLM1aQ/SZ2x6CYFKFJI1W/eXlrV8=";
2019-01-18 14:32:33 +00:00
};
2016-03-04 09:43:11 +00:00
nativeBuildInputs = [
pkg-config
2019-01-19 18:51:21 +00:00
meson
ninja
gettext
python3
itstool
2019-01-19 18:51:21 +00:00
desktop-file-utils
vala
2019-11-20 03:30:05 +00:00
yelp-tools
2024-07-09 13:08:28 +01:00
wrapGAppsHook4
2019-03-15 10:31:52 +00:00
# For https://github.com/FontManager/master/blob/master/lib/unicode/meson.build
gobject-introspection
];
buildInputs = [
2016-03-04 09:43:11 +00:00
libxml2
json-glib
2016-03-04 09:43:11 +00:00
sqlite
gsettings-desktop-schemas # for font settings
2024-07-09 13:08:28 +01:00
gtk4
adwaita-icon-theme
] ++ lib.optionals withWebkit [
glib-networking # for SSL so that Google Fonts can load
libsoup
2021-04-06 19:29:45 +01:00
webkitgtk
2016-03-04 09:43:11 +00:00
];
mesonFlags = [
"-Dreproducible=true" # Do not hardcode build directory…
(lib.mesonBool "webkit" withWebkit)
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://fontmanager.github.io/";
description = "Simple font management for GTK desktop environments";
mainProgram = "font-manager";
2016-03-04 09:43:11 +00:00
longDescription = ''
Font Manager is intended to provide a way for average users to
easily manage desktop fonts, without having to resort to command
line tools or editing configuration files by hand. While designed
primarily with the Gnome Desktop Environment in mind, it should
work well with other GTK desktop environments.
2016-03-04 09:43:11 +00:00
Font Manager is NOT a professional-grade font management solution.
'';
2021-04-06 19:29:45 +01:00
license = licenses.gpl3Plus;
2019-03-15 10:31:52 +00:00
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
2016-03-04 09:43:11 +00:00
};
}