update and fix flake build
This commit is contained in:
parent
d8fb9adb1e
commit
ea9d993324
@ -1,4 +1,4 @@
|
||||
{ pkgs, ...}:
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
version = "7.1";
|
||||
@ -6,15 +6,12 @@ pkgs.stdenv.mkDerivation {
|
||||
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://smc.org.in/downloads/fonts/anjalioldlipi/anjalioldlipi.zip";
|
||||
hash = "sha256-yqlTyoDQPKmH/ssTSrQPZEqFiuN+pvZyGLggiQWoa/M=s";
|
||||
hash = "sha256-c3ScpdN2h39Q6GLFL97pBBGrsillcMXmhlGilOAdF1w=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm444 -t $out/share/fonts/truetype $src/*.ttf
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ pkgs, ...}:
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
version = "1.7";
|
||||
@ -6,15 +6,12 @@ pkgs.stdenv.mkDerivation {
|
||||
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://smc.org.in/downloads/fonts/chilanka/chilanka.zip";
|
||||
hash = "sha256-u3hUW6EFhr9FIUl28u7TUKEclxWcpK95OUmL+SCwkD0=s";
|
||||
hash = "sha256-z+pRvm/8alA3TbUBuR4oDD/kpvuXJTqOBlzXEKBZvnE=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm444 -t $out/share/fonts/truetype $src/*.ttf
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
|
@ -1,8 +1,7 @@
|
||||
{ pkgs,... }:
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
manjari = pkgs.callPackage ./manjari {};
|
||||
anjali-old-lipi = pkgs.callPackage ./anjali-old-lipi {};
|
||||
chilanka = pkgs.callPackage ./chilanka {};
|
||||
manjari = pkgs.callPackage ./manjari { };
|
||||
anjali-old-lipi = pkgs.callPackage ./anjali-old-lipi { };
|
||||
chilanka = pkgs.callPackage ./chilanka { };
|
||||
}
|
||||
|
34
flake.lock
34
flake.lock
@ -1,5 +1,23 @@
|
||||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726560853,
|
||||
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1721924956,
|
||||
@ -18,8 +36,24 @@
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
28
flake.nix
28
flake.nix
@ -3,16 +3,30 @@
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:{
|
||||
outputs = inputs:
|
||||
with inputs;
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
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 { };
|
||||
in rec {
|
||||
packages = {
|
||||
smc-anjali-old-lipi = font-smc-anjali-old-lipi;
|
||||
smc-manjari = font-smc-manjari;
|
||||
smc-chilanka = font-smc-chilanka;
|
||||
|
||||
packages.x86_64-linux = let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux";};
|
||||
in {
|
||||
smcFonts = import ./default.nix { inherit pkgs; };
|
||||
default = self.packages.x86_64-linux.smcFonts.chilanka;
|
||||
all = pkgs.symlinkJoin {
|
||||
name = "all";
|
||||
paths =
|
||||
[ font-smc-anjali-old-lipi font-smc-chilanka font-smc-manjari ];
|
||||
};
|
||||
default = packages.all;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ pkgs, ...}:
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
version = "2.200";
|
||||
@ -6,16 +6,12 @@ pkgs.stdenv.mkDerivation {
|
||||
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://smc.org.in/downloads/fonts/manjari/manjari.zip";
|
||||
hash = "sha256-u3hUW6EFhr9FIUl28u7TUKEclxWcpK95OUmL+SCwkD0=";
|
||||
hash = "sha256-Sq/7UOBO54c3id6FMZeOmnZTRceEkMAAN8W+C7v7Mtw=";
|
||||
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; {
|
||||
|
Loading…
Reference in New Issue
Block a user