fontfor: 0.4.1 -> 0.4.3, modernize

Switched to the `pkgs/by-name` convention, reformatted using
`nixfmt-rfc-style`, and added an update script.
This commit is contained in:
Leah Amelia Chen 2024-05-11 00:02:18 +02:00
parent 9defb411b4
commit d76288b0dd
2 changed files with 15 additions and 13 deletions

View File

@ -1,22 +1,24 @@
{ lib
, rustPlatform
, fetchFromGitHub
, cmake
, pkg-config
, expat
, fontconfig
, freetype
{
lib,
rustPlatform,
fetchFromGitHub,
cmake,
pkg-config,
expat,
fontconfig,
freetype,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "fontfor";
version = "0.4.1";
version = "0.4.3";
src = fetchFromGitHub {
owner = "7sDream";
repo = "fontfor";
rev = "v${version}";
sha256 = "sha256-/UoZ+5X6Csoyqc+RSP0Hree7NtCDs7BjsqcpALxAazc=";
hash = "sha256-gJl9SPL/KeYFzKIjwWPVR1iVy6h/W7OP7xE7krhYaY8=";
};
nativeBuildInputs = [
@ -29,7 +31,9 @@ rustPlatform.buildRustPackage rec {
freetype
];
cargoHash = "sha256-j1Qf0IKlAUEyiGAUoF7IlEbPIv2pGkn+YMCoFdF9oUE=";
cargoHash = "sha256-9Ac2NuUFfluXN4NOT645gszGApBIsFxQiTZDf8PHbvo=";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Find fonts which can show a specified character and preview them in browser";

View File

@ -8099,8 +8099,6 @@ with pkgs;
flowblade = callPackage ../applications/video/flowblade { };
fontfor = callPackage ../tools/misc/fontfor { };
fontforge = lowPrio (callPackage ../tools/misc/fontforge {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
python = python3;