Compare commits
8 Commits
alternate-
...
trunk
Author | SHA1 | Date | |
---|---|---|---|
7266a38c91 | |||
d77fd5ad2d | |||
71f49aa290 | |||
4e26085e02 | |||
28e562fee0 | |||
dbb3f97799 | |||
d2f12e10f0 | |||
6fb5576114 |
7
.gitlab-ci.yml
Normal file
7
.gitlab-ci.yml
Normal file
@ -0,0 +1,7 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: nixpkgs/nix:latest
|
||||
script: nix build . --extra-experimental-features "nix-command flakes"
|
10
README.md
10
README.md
@ -1,14 +1,8 @@
|
||||
# WIP SMC fonts flake
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -4,7 +4,6 @@
|
||||
, fonts ? [ ] }:
|
||||
|
||||
let
|
||||
# both of these files are generated via ./update.sh
|
||||
version = "version-20241013";
|
||||
fontsShas = import ./shas.nix;
|
||||
knownFonts = builtins.attrNames fontsShas;
|
||||
@ -65,9 +64,9 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "SMC typefaces";
|
||||
description = "Malayalam typefaces made by smc.org.in";
|
||||
longDescription = ''
|
||||
Swathanthra Malayalam Computing.
|
||||
Swathanthra Malayalam Computing (SMC) is a free software collective engaged in the development, localization, standardization and popularization of various Free and Open Source Software in the Malayalam language. This derivation builds all fonts made by SMC.
|
||||
'';
|
||||
homepage = "https://smc.org.in/";
|
||||
license = licenses.ofl;
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user