Compare commits
No commits in common. "trunk" and "alternate-strategy" have entirely different histories.
trunk
...
alternate-
@ -1,7 +0,0 @@
|
|||||||
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,8 +1,14 @@
|
|||||||
SMC fonts flake
|
# WIP SMC fonts flake
|
||||||
|
|
||||||
This is a nix flake that installs all SMC fonts.
|
This is a WIP Flake that can install SMCs fonts. Currently, the following are supported.
|
||||||
|
|
||||||
|
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
|
## Using with a flakes+home-manager based nixOS setup
|
||||||
|
|
||||||
In the inputs section
|
In the inputs section
|
||||||
|
28
anjali-old-lipi/default.nix
Normal file
28
anjali-old-lipi/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
28
chilanka/default.nix
Normal file
28
chilanka/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ 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,6 +4,7 @@
|
|||||||
, fonts ? [ ] }:
|
, fonts ? [ ] }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
# both of these files are generated via ./update.sh
|
||||||
version = "version-20241013";
|
version = "version-20241013";
|
||||||
fontsShas = import ./shas.nix;
|
fontsShas = import ./shas.nix;
|
||||||
knownFonts = builtins.attrNames fontsShas;
|
knownFonts = builtins.attrNames fontsShas;
|
||||||
@ -64,9 +65,9 @@ in stdenv.mkDerivation (finalAttrs: {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Malayalam typefaces made by smc.org.in";
|
description = "SMC typefaces";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
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.
|
Swathanthra Malayalam Computing.
|
||||||
'';
|
'';
|
||||||
homepage = "https://smc.org.in/";
|
homepage = "https://smc.org.in/";
|
||||||
license = licenses.ofl;
|
license = licenses.ofl;
|
||||||
|
@ -12,9 +12,18 @@
|
|||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
fonts-smc = pkgs.callPackage ./default.nix { };
|
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 {
|
in rec {
|
||||||
packages = {
|
packages = {
|
||||||
smc-fonts = fonts-smc;
|
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;
|
default = fonts-smc;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
28
manjari/default.nix
Normal file
28
manjari/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ 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