lol

smc-manjari: init at 2.200

authored by

Adithya Nair and committed by
FliegendeWurst
ff3e0ccc bfd71544

+49
+49
pkgs/by-name/sm/smc-manjari/package.nix
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchFromGitLab, 5 + python3Packages, 6 + gnumake, 7 + truetype ? false, 8 + }: 9 + 10 + stdenvNoCC.mkDerivation rec { 11 + pname = "smc-manjari"; 12 + version = "2.200"; 13 + 14 + src = fetchFromGitLab { 15 + group = "smc"; 16 + owner = "fonts"; 17 + repo = "manjari"; 18 + rev = "Version${version}"; 19 + hash = "sha256-B3EI6rrZyhc3xJuVIDVIjLrjJmFoFzHIwVV/4EBQv1s="; 20 + }; 21 + 22 + nativeBuildInputs = [ 23 + gnumake 24 + python3Packages.fontmake 25 + ]; 26 + 27 + buildFlags = [ "otf" ] ++ lib.optional truetype "ttf"; 28 + 29 + installPhase = '' 30 + runHook preInstall 31 + 32 + install -Dm444 -t $out/share/fonts/opentype build/*.otf 33 + ${lib.optionalString truetype "install -Dm444 -t $out/share/fonts/truetype build/*.ttf"} 34 + 35 + install -Dm644 -t $out/etc/fonts/conf.d *.conf 36 + 37 + install -Dm644 -t $out/share/doc/${pname}-${version} OFL.txt FONTLOG.md 38 + 39 + runHook postInstall 40 + ''; 41 + 42 + meta = { 43 + homepage = "https://smc.org.in/fonts/manjari"; 44 + description = "Manjari Malayalam Typeface"; 45 + license = lib.licenses.ofl; 46 + platforms = lib.platforms.all; 47 + maintainers = with lib.maintainers; [ adtya ]; 48 + }; 49 + }