Skip to content

Commit

Permalink
smc-manjari: init at 2.200 (NixOS#264540)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 15, 2024
2 parents d388ee0 + ff3e0cc commit c239bf4
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/by-name/sm/smc-manjari/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
lib,
stdenvNoCC,
fetchFromGitLab,
python3Packages,
gnumake,
truetype ? false,
}:

stdenvNoCC.mkDerivation rec {
pname = "smc-manjari";
version = "2.200";

src = fetchFromGitLab {
group = "smc";
owner = "fonts";
repo = "manjari";
rev = "Version${version}";
hash = "sha256-B3EI6rrZyhc3xJuVIDVIjLrjJmFoFzHIwVV/4EBQv1s=";
};

nativeBuildInputs = [
gnumake
python3Packages.fontmake
];

buildFlags = [ "otf" ] ++ lib.optional truetype "ttf";

installPhase = ''
runHook preInstall
install -Dm444 -t $out/share/fonts/opentype build/*.otf
${lib.optionalString truetype "install -Dm444 -t $out/share/fonts/truetype build/*.ttf"}
install -Dm644 -t $out/etc/fonts/conf.d *.conf
install -Dm644 -t $out/share/doc/${pname}-${version} OFL.txt FONTLOG.md
runHook postInstall
'';

meta = {
homepage = "https://smc.org.in/fonts/manjari";
description = "Manjari Malayalam Typeface";
license = lib.licenses.ofl;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ adtya ];
};
}

0 comments on commit c239bf4

Please sign in to comment.