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
50 lines
1.6 KiB
Nix
50 lines
1.6 KiB
Nix
{
|
||
lib,
|
||
stdenvNoCC,
|
||
fetchFromGitHub,
|
||
}:
|
||
|
||
stdenvNoCC.mkDerivation {
|
||
pname = "sarabun";
|
||
version = "0-unstable-2018-08-24";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "cadsondemak";
|
||
repo = "sarabun";
|
||
rev = "854cdbc6afa002ff8c2ce6aa7b86f99c7f71c9eb";
|
||
sha256 = "jcSQ72WK0GucZPgG7IQKrKzCOEbGgbQVl21RIKSF6A0=";
|
||
};
|
||
|
||
outputs = [
|
||
"out"
|
||
"doc"
|
||
];
|
||
|
||
installPhase = ''
|
||
runHook preInstall
|
||
mkdir -p $doc/sarabun $out/share/fonts/truetype
|
||
cp -r $src/OFL.txt $src/docs/* $doc/sarabun
|
||
cp $src/fonts/*.ttf $out/share/fonts/truetype
|
||
runHook postInstall
|
||
'';
|
||
|
||
meta = {
|
||
homepage = "https://cadsondemak.github.io/sarabun/";
|
||
description = "Slightly-condensed looped Thai and sans serif Latin typeface for communications";
|
||
longDescription = ''
|
||
The most popular typeface from the 13 fonts from SIPA Thailand’s National
|
||
fonts project. Sarabun was designed by Suppakit Chalermlarp to be a
|
||
serious text face. Great choice for a long reading formal text. This font
|
||
was selected by the royal Thai government to be the official typeface for
|
||
documentation purpose. It was also adopted by many private organizations
|
||
to be used as a communication font. Sarabun has a slightly condensed
|
||
proportion which fits perfectly with Thai legibility. It also carries a
|
||
neutral Thai traditional loop design which can easily fit in with any
|
||
occasion. Probably one of the most today’s familiar Thai loop typefaces.
|
||
'';
|
||
license = lib.licenses.ofl;
|
||
platforms = lib.platforms.all;
|
||
maintainers = with lib.maintainers; [ toastal ];
|
||
};
|
||
}
|