Compare commits
3 Commits
alternate-
...
dbb3f97799
Author | SHA1 | Date | |
---|---|---|---|
dbb3f97799 | |||
d2f12e10f0 | |||
6fb5576114 |
@@ -1,14 +1,8 @@
|
||||
# WIP SMC fonts flake
|
||||
|
||||
This is a WIP Flake that can install SMCs fonts. Currently, the following are supported.
|
||||
This is a nix flake that installs all SMC fonts.
|
||||
|
||||
1. Anjali Old Lipi
|
||||
2. Chilanka
|
||||
3. Manjari
|
||||
4. Gayathri
|
||||
|
||||
*NOTE* I am not that familiar with nix flakes yet. This repo will see a lot more activity and perhaps significant change in structure in the near future.
|
||||
|
||||
## Using with a flakes+home-manager based nixOS setup
|
||||
|
||||
In the inputs section
|
||||
|
@@ -1,28 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
version = "7.1";
|
||||
pname = "anjali-old-lipi";
|
||||
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://smc.org.in/downloads/fonts/anjalioldlipi/anjalioldlipi.zip";
|
||||
hash = "sha256-c3ScpdN2h39Q6GLFL97pBBGrsillcMXmhlGilOAdF1w=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
homepage = "https://smc.org.in/fonts/manjari";
|
||||
description = "Anjali Old Lipi Malayalam Typeface";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ aashiks ];
|
||||
};
|
||||
}
|
@@ -1,28 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
version = "1.7";
|
||||
pname = "chilanka";
|
||||
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://smc.org.in/downloads/fonts/chilanka/chilanka.zip";
|
||||
hash = "sha256-z+pRvm/8alA3TbUBuR4oDD/kpvuXJTqOBlzXEKBZvnE=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
homepage = "https://smc.org.in/fonts/chilanka";
|
||||
description = "Chilanka Malayalam Typeface";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ aashiks ];
|
||||
};
|
||||
}
|
@@ -12,18 +12,9 @@
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
fonts-smc = pkgs.callPackage ./default.nix { };
|
||||
# font-smc-manjari = pkgs.callPackage ./manjari/default.nix { };
|
||||
# font-smc-anjali-old-lipi =
|
||||
# pkgs.callPackage ./anjali-old-lipi/default.nix { };
|
||||
# font-smc-chilanka = pkgs.callPackage ./chilanka/default.nix { };
|
||||
# font-smc-gayathri = pkgs.callPackage ./gayathri/default.nix { };
|
||||
in rec {
|
||||
packages = {
|
||||
smc-fonts = fonts-smc;
|
||||
# smc-anjali-old-lipi = font-smc-anjali-old-lipi;
|
||||
# smc-manjari = font-smc-manjari;
|
||||
# smc-chilanka = font-smc-chilanka;
|
||||
# smc-gayathri = font-smc-gayathri;
|
||||
default = fonts-smc;
|
||||
};
|
||||
});
|
||||
|
@@ -1,28 +0,0 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@@ -1,28 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
version = "2.200";
|
||||
pname = "manjari";
|
||||
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://smc.org.in/downloads/fonts/manjari/manjari.zip";
|
||||
hash = "sha256-Sq/7UOBO54c3id6FMZeOmnZTRceEkMAAN8W+C7v7Mtw=";
|
||||
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/manjari";
|
||||
description = "Manjari Malayalam Typeface";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ aashiks ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user