Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
stdenvNoCC,
|
|
fontforge,
|
|
python3,
|
|
}:
|
|
|
|
let
|
|
python3' = python3.withPackages (
|
|
ps: with ps; [
|
|
fonttools
|
|
ttfautohint-py
|
|
]
|
|
);
|
|
in
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "notonoto-console";
|
|
version = "0.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yuru7";
|
|
repo = "NOTONOTO";
|
|
tag = "v${version}";
|
|
hash = "sha256-1dbx4yC8gL41OEAE/LNDyoDb4xhAwV5h8oRmdlPULUo=";
|
|
};
|
|
|
|
# ttfautohint: unrecognized option '--epoch'
|
|
postPatch = ''
|
|
substituteInPlace fonttools_script.py \
|
|
--replace-fail 'print("exec hinting", options_)' 'options_.pop("epoch", None)'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
fontforge
|
|
python3'
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
fontforge --script fontforge_script.py --console
|
|
python3 ./fonttools_script.py
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm444 build/*.ttf -t $out/share/fonts/truetype/notonoto-console
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Programming font that combines Noto Sans Mono and Noto Sans JP";
|
|
homepage = "https://github.com/yuru7/NOTONOTO";
|
|
license = lib.licenses.ofl;
|
|
maintainers = with lib.maintainers; [ genga898 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|