fontforge: move to by-name

+17 -34
+6
pkgs/by-name/fo/fontforge-gtk/package.nix
···
··· 1 + { fontforge }: 2 + 3 + fontforge.override { 4 + withSpiro = true; 5 + withGTK = true; 6 + }
+10 -20
pkgs/tools/misc/fontforge/default.nix pkgs/by-name/fo/fontforge/package.nix
··· 6 cmake, 7 uthash, 8 pkg-config, 9 - python, 10 freetype, 11 zlib, 12 glib, ··· 27 withGUI ? withGTK, 28 withPython ? true, 29 withExtras ? true, 30 - Carbon, 31 - Cocoa, 32 - makeWrapper, 33 }: 34 35 assert withGTK -> withGUI; 36 37 let 38 - py = python.withPackages (ps: with ps; [ setuptools ]); 39 in 40 stdenv.mkDerivation rec { 41 pname = "fontforge"; 42 version = "20230101"; 43 44 src = fetchFromGitHub { 45 - owner = pname; 46 - repo = pname; 47 rev = version; 48 sha256 = "sha256-/RYhvL+Z4n4hJ8dmm+jbA1Ful23ni2DbCRZC5A3+pP0="; 49 }; ··· 98 libxml2 99 ] 100 ++ lib.optionals withSpiro [ libspiro ] 101 - ++ lib.optionals withGUI [ 102 - gtk3 103 - cairo 104 - pango 105 - ] 106 - ++ lib.optionals stdenv.hostPlatform.isDarwin [ 107 - Carbon 108 - Cocoa 109 - ]; 110 111 cmakeFlags = 112 [ "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON" ] ··· 130 rm -r "$out/share/fontforge/python" 131 ''; 132 133 - meta = with lib; { 134 description = "Font editor"; 135 homepage = "https://fontforge.github.io"; 136 - platforms = platforms.all; 137 - license = licenses.bsd3; 138 - maintainers = with maintainers; [ erictapen ulysseszhan ]; 139 }; 140 }
··· 6 cmake, 7 uthash, 8 pkg-config, 9 + makeWrapper, 10 + python3, 11 freetype, 12 zlib, 13 glib, ··· 28 withGUI ? withGTK, 29 withPython ? true, 30 withExtras ? true, 31 }: 32 33 assert withGTK -> withGUI; 34 35 let 36 + py = python3.withPackages (ps: with ps; [ setuptools ]); 37 in 38 stdenv.mkDerivation rec { 39 pname = "fontforge"; 40 version = "20230101"; 41 42 src = fetchFromGitHub { 43 + owner = "fontforge"; 44 + repo = "fontforge"; 45 rev = version; 46 sha256 = "sha256-/RYhvL+Z4n4hJ8dmm+jbA1Ful23ni2DbCRZC5A3+pP0="; 47 }; ··· 96 libxml2 97 ] 98 ++ lib.optionals withSpiro [ libspiro ] 99 + ++ lib.optionals withGUI [ gtk3 cairo pango ]; 100 101 cmakeFlags = 102 [ "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON" ] ··· 120 rm -r "$out/share/fontforge/python" 121 ''; 122 123 + meta = { 124 description = "Font editor"; 125 homepage = "https://fontforge.github.io"; 126 + platforms = lib.platforms.all; 127 + license = lib.licenses.bsd3; 128 + maintainers = with lib.maintainers; [ erictapen ulysseszhan ]; 129 }; 130 }
pkgs/tools/misc/fontforge/fontforge-fonttools.nix pkgs/by-name/fo/fontforge-fonttools/package.nix
pkgs/tools/misc/fontforge/replace-distutils.patch pkgs/by-name/fo/fontforge/replace-distutils.patch
-13
pkgs/top-level/all-packages.nix
··· 3374 3375 fastlane = callPackage ../tools/admin/fastlane { }; 3376 3377 - fontforge = lowPrio (callPackage ../tools/misc/fontforge { 3378 - inherit (darwin.apple_sdk.frameworks) Carbon Cocoa; 3379 - python = python3; 3380 - }); 3381 - fontforge-gtk = fontforge.override { 3382 - withSpiro = true; 3383 - withGTK = true; 3384 - gtk3 = gtk3-x11; 3385 - inherit (darwin.apple_sdk.frameworks) Carbon Cocoa; 3386 - }; 3387 - 3388 - fontforge-fonttools = callPackage ../tools/misc/fontforge/fontforge-fonttools.nix { }; 3389 - 3390 fontmatrix = libsForQt5.callPackage ../applications/graphics/fontmatrix { }; 3391 3392 fox = callPackage ../development/libraries/fox {};
··· 3374 3375 fastlane = callPackage ../tools/admin/fastlane { }; 3376 3377 fontmatrix = libsForQt5.callPackage ../applications/graphics/fontmatrix { }; 3378 3379 fox = callPackage ../development/libraries/fox {};
+1 -1
pkgs/top-level/python-packages.nix
··· 4846 (pythonOlder "3.10") 4847 (toPythonModule (pkgs.fontforge.override { 4848 withPython = true; 4849 - inherit python; 4850 })); 4851 4852 fontmath = callPackage ../development/python-modules/fontmath { };
··· 4846 (pythonOlder "3.10") 4847 (toPythonModule (pkgs.fontforge.override { 4848 withPython = true; 4849 + python3 = python; 4850 })); 4851 4852 fontmath = callPackage ../development/python-modules/fontmath { };