This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/fonts/kreative/fairfax-hd.nix

29 lines
778 B
Nix
Raw Normal View History

2022-09-25 17:21:17 +00:00
{
stdenv,
callPackage,
lib,
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
in
stdenv.mkDerivation {
name = "fairfax-hd";
version = source.date;
src = callPackage ./source.nix {};
preferLocalBuild = true;
buildPhase = "true";
installPhase = ''
for variant in HD HaxHD PonaHD SMHD; do
install -m444 -Dt $out/share/truetype/FairfaxHD FairfaxHD/Fairfax$variant.ttf
done
'';
meta = {
description = "Halfwidth scalable monospace font with support for many scripts, including Conscripts";
license = lib.licenses.ofl;
};
passthru.updateScript = [
../../scripts/update-git.sh
2023-09-18 10:00:48 +00:00
"https://github.com/kreativekorp/open-relay.git"
2022-09-25 17:21:17 +00:00
"fonts/kreative/source.json"
];
}