initial dumb flake that can build manjari

This commit is contained in:
puttaalu 2024-07-27 00:22:52 +02:00
commit 1be032dc6a
2 changed files with 73 additions and 0 deletions

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1721924956,
"narHash": "sha256-Sb1jlyRO+N8jBXEX9Pg9Z1Qb8Bw9QyOgLDNMEpmjZ2M=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5ad6a14c6bf098e98800b091668718c336effc95",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

46
flake.nix Normal file
View File

@ -0,0 +1,46 @@
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:{
packages.x86_64-linux {
default =
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
# Define the package
pkgs.stdenv.mkDerivation {
version = "2.200";
pname = "manjari";
src = pkgs.fetchzip {
url = "https://smc.org.in/downloads/fonts/manjari/manjari.zip";
hash = "sha256-u3hUW6EFhr9FIUl28u7TUKEclxWcpK95OUmL+SCwkD0=";
stripRoot = false;
};
installPhase = ''
runHook preInstall
install -Dm444 -t $out/share/fonts/opentype $src/*.otf
install -Dm444 -t $out/share/fonts/truetype $src/*.ttf
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 ];
};
};
};
}