add gayathri
This commit is contained in:
parent
9c53e5c3df
commit
dbba1430b0
13
flake.nix
13
flake.nix
@ -12,18 +12,25 @@
|
|||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
font-smc-manjari = pkgs.callPackage ./manjari/default.nix { };
|
font-smc-manjari = pkgs.callPackage ./manjari/default.nix { };
|
||||||
font-smc-anjali-old-lipi = pkgs.callPackage ./anjali-old-lipi/default.nix { };
|
font-smc-anjali-old-lipi =
|
||||||
|
pkgs.callPackage ./anjali-old-lipi/default.nix { };
|
||||||
font-smc-chilanka = pkgs.callPackage ./chilanka/default.nix { };
|
font-smc-chilanka = pkgs.callPackage ./chilanka/default.nix { };
|
||||||
|
font-smc-gayathri = pkgs.callPackage ./gayathri/default.nix { };
|
||||||
in rec {
|
in rec {
|
||||||
packages = {
|
packages = {
|
||||||
smc-anjali-old-lipi = font-smc-anjali-old-lipi;
|
smc-anjali-old-lipi = font-smc-anjali-old-lipi;
|
||||||
smc-manjari = font-smc-manjari;
|
smc-manjari = font-smc-manjari;
|
||||||
smc-chilanka = font-smc-chilanka;
|
smc-chilanka = font-smc-chilanka;
|
||||||
|
smc-gayathri = font-smc-gayathri;
|
||||||
|
|
||||||
all = pkgs.symlinkJoin {
|
all = pkgs.symlinkJoin {
|
||||||
name = "all";
|
name = "all";
|
||||||
paths =
|
paths = [
|
||||||
[ font-smc-anjali-old-lipi font-smc-chilanka font-smc-manjari ];
|
font-smc-anjali-old-lipi
|
||||||
|
font-smc-chilanka
|
||||||
|
font-smc-manjari
|
||||||
|
font-smc-gayathri
|
||||||
|
];
|
||||||
};
|
};
|
||||||
default = packages.all;
|
default = packages.all;
|
||||||
};
|
};
|
||||||
|
28
gayathri/default.nix
Normal file
28
gayathri/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
|
version = "1.300 ";
|
||||||
|
pname = "gayathri";
|
||||||
|
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://smc.org.in/downloads/fonts/gayathri/gayathri.zip";
|
||||||
|
hash = "sha256-p9KZi31Na4hfUuDsKj4OXjc9s6J/8xMeuszlL5oVauQ=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
|
homepage = "https://smc.org.in/fonts/gayathri";
|
||||||
|
description = "Chilanka Malayalam Typeface";
|
||||||
|
license = licenses.ofl;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ aashiks ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user