use smc-chilanka from nixpkgs
This commit is contained in:
parent
e2b0efda53
commit
6aac27f048
2 changed files with 4 additions and 41 deletions
|
@ -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 ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, extra-packages, ... }: {
|
{ pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware
|
./hardware
|
||||||
./programs
|
./programs
|
||||||
|
@ -17,14 +17,13 @@
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
packages = (with pkgs; [
|
packages = with pkgs; [
|
||||||
cantarell-fonts
|
cantarell-fonts
|
||||||
liberation_ttf
|
|
||||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||||
noto-fonts
|
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
]) ++ [ extra-packages.smc-manjari ];
|
smc-chilanka
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk.iconCache.enable = true;
|
gtk.iconCache.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue