Unverified Commit b5b67cb8 authored by Shiphan's avatar Shiphan
Browse files

fontc: init at 0.3.0

parent 419dcad7
Loading
Loading
Loading
Loading
+3145 −0

File added.

Preview size limit exceeded, changes collapsed.

+36 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
}:

rustPlatform.buildRustPackage rec {
  pname = "fontc";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "googlefonts";
    repo = "fontc";
    rev = "fontc-v${version}";
    hash = "sha256-Zr2nJRNY1vLGhVOGC3KSWbd4cQReO/F8Wgzx3y/qPFc=";
  };
  buildAndTestSubdir = "fontc";

  postPatch = ''
    ln -s ${./Cargo.lock} Cargo.lock
  '';
  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "tidy-sys-0.8.2" = "sha256-Okt+mqakdwm0OlD4UXBtQIbO+Wmlk6jTMWi9Q5Y1M2o=";
    };
  };

  meta = {
    description = "Wherein we pursue oxidizing (context: https://github.com/googlefonts/oxidize) fontmake";
    homepage = "https://github.com/googlefonts/fontc";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ shiphan ];
    mainProgram = "fontc";
  };
}