use smc-manjari for malayalam

This commit is contained in:
Adithya 2023-11-08 20:36:52 +05:30
parent 5c0bf91850
commit f3d53de3b3
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 43 additions and 5 deletions

View file

@ -28,6 +28,7 @@
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
smc-manjari
];
};

View file

@ -1,6 +1,7 @@
self: super: {
adi1090x-plymouth = super.callPackage ./adi1090x-plymouth { };
dracula-gtk = super.callPackage ./dracula-gtk { };
scripts = super.callPackage ./scripts { };
rofi-bluetooth = super.callPackage ./rofi-bluetooth { };
final: prev: {
adi1090x-plymouth = prev.callPackage ./adi1090x-plymouth { };
dracula-gtk = prev.callPackage ./dracula-gtk { };
scripts = prev.callPackage ./scripts { };
rofi-bluetooth = prev.callPackage ./rofi-bluetooth { };
smc-manjari = prev.callPackage ./smc-manjari { };
}

View file

@ -0,0 +1,36 @@
{ lib, stdenvNoCC, fetchurl, truetype ? false }:
stdenvNoCC.mkDerivation rec {
pname = "smc-manjari";
version = "2.200";
src = fetchurl {
url = "https://gitlab.com/api/v4/projects/490109/jobs/artifacts/Version${version}/raw/build/manjari-Version${version}.tar.gz?job=build-tag";
hash = "sha256-3DyR5RCMPkjjNn3WmwAwE8sernFJiYoqtZ35otuyVWo=";
};
unpackPhase = ''
tar xzf $src
'';
installPhase = ''
runHook preInstall
install -Dm444 -t $out/share/fonts/opentype otf/*.otf
${lib.optionalString truetype "install -Dm444 -t $out/share/fonts/truetype ttf/*.ttf"}
install -Dm644 -t $out/etc/fonts/conf.d *.conf
install -Dm644 -t $out/share/doc/${pname}-${version} OFL.txt
runHook postInstall
'';
meta = with lib; {
homepage = "https://smc.org.in/fonts/manjari";
description = "Manjari Malayalam Typeface";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ adtya ];
};
}