nixos-config/packages/fonts/kreative/kreative-square.nix

24 lines
605 B
Nix
Raw Normal View History

{
stdenv,
callPackage,
lib,
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
in
stdenv.mkDerivation {
name = "kreative-square";
version = source.date;
src = callPackage ./source.nix {};
preferLocalBuild = true;
buildPhase = "true";
installPhase = ''
for variant in "" SM; do
install -m444 -Dt $out/share/truetype/KreativeSquare KreativeSquare/KreativeSquare$variant.ttf
done
'';
meta = {
description = "Fullwidth scalable monospace font with many Box Drawing characters";
license = lib.licenses.ofl;
};
}