You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. { stdenv, fetchFromGitHub, meson, ninja, gettext, python3, fetchpatch,
  2. pkgconfig, libxml2, json-glib , sqlite, itstool, librsvg,
  3. vala, gtk3, gnome3, desktop-file-utils, wrapGAppsHook, gobject-introspection
  4. }:
  5. stdenv.mkDerivation rec {
  6. pname = "font-manager";
  7. version = "0.7.5";
  8. src = fetchFromGitHub {
  9. owner = "FontManager";
  10. repo = "master";
  11. rev = version;
  12. sha256 = "16hma8rrkam6ngn5vbdaryn31vdixvii6920g9z928gylz9xkd3g";
  13. };
  14. nativeBuildInputs = [
  15. pkgconfig
  16. meson
  17. ninja
  18. gettext
  19. python3
  20. itstool
  21. desktop-file-utils
  22. vala
  23. gnome3.yelp-tools
  24. wrapGAppsHook
  25. # For https://github.com/FontManager/master/blob/master/lib/unicode/meson.build
  26. gobject-introspection
  27. ];
  28. buildInputs = [
  29. libxml2
  30. json-glib
  31. sqlite
  32. librsvg
  33. gtk3
  34. gnome3.adwaita-icon-theme
  35. ];
  36. mesonFlags = [
  37. "-Ddisable_pycompile=true"
  38. ];
  39. patches = [
  40. # fix build with Vala 0.46
  41. (fetchpatch {
  42. url = "https://github.com/FontManager/font-manager/commit/c73b40de11f376f4515a0edfe97fb3721a264b35.patch";
  43. sha256 = "0lacwsifgvda2r3z6j2a0svdqr6mgav7zkvih35xa8155y8wfpnw";
  44. excludes = [ "fedora/font-manager.spec" ];
  45. })
  46. ];
  47. postPatch = ''
  48. chmod +x meson_post_install.py
  49. patchShebangs meson_post_install.py
  50. '';
  51. meta = with stdenv.lib; {
  52. homepage = https://fontmanager.github.io/;
  53. description = "Simple font management for GTK desktop environments";
  54. longDescription = ''
  55. Font Manager is intended to provide a way for average users to
  56. easily manage desktop fonts, without having to resort to command
  57. line tools or editing configuration files by hand. While designed
  58. primarily with the Gnome Desktop Environment in mind, it should
  59. work well with other GTK desktop environments.
  60. Font Manager is NOT a professional-grade font management solution.
  61. '';
  62. license = licenses.gpl3;
  63. platforms = platforms.unix;
  64. maintainers = [ maintainers.romildo ];
  65. };
  66. }