use smc-chilanka from nixpkgs

This commit is contained in:
Adithya 2024-06-12 22:09:26 +05:30
parent e2b0efda53
commit 6aac27f048
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 4 additions and 41 deletions

View file

@ -1,36 +0,0 @@
{ 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 ];
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, extra-packages, ... }: {
{ pkgs, ... }: {
imports = [
./hardware
./programs
@ -17,14 +17,13 @@
fonts = {
fontDir.enable = true;
packages = (with pkgs; [
packages = with pkgs; [
cantarell-fonts
liberation_ttf
(nerdfonts.override { fonts = [ "FiraCode" ]; })
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
]) ++ [ extra-packages.smc-manjari ];
smc-chilanka
];
};
gtk.iconCache.enable = true;