Compare commits

...

8 Commits

Author SHA1 Message Date
7266a38c91 update nix channel to unstable 2024-10-25 15:00:05 +02:00
d77fd5ad2d enable ci 2024-10-25 14:56:09 +02:00
71f49aa290 update readme 2024-10-25 14:50:08 +02:00
4e26085e02 Update default.nix 2024-10-13 20:50:28 +00:00
28e562fee0 Update default.nix 2024-10-13 20:45:28 +00:00
dbb3f97799 remove unused code 2024-10-13 20:01:43 +02:00
d2f12e10f0 remove commented out lines 2024-10-13 19:40:20 +02:00
6fb5576114 update readme 2024-10-13 19:38:43 +02:00
8 changed files with 11 additions and 132 deletions

7
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,7 @@
stages:
- build
build:
stage: build
image: nixpkgs/nix:latest
script: nix build . --extra-experimental-features "nix-command flakes"

View File

@ -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

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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;

View File

@ -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;
};
});

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}