-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
33 lines (31 loc) · 999 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
description = "A Toaq translation of Minecraft";
inputs.toaq-fonts.url = github:toaq/fonts;
inputs.nixpkgs.follows = "toaq-fonts/nixpkgs";
inputs.flake-utils.follows = "toaq-fonts/flake-utils";
outputs = { self, nixpkgs, flake-utils, toaq-fonts }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
derani-fonts = toaq-fonts.packages.${system}.derani;
in {
defaultPackage = pkgs.stdenvNoCC.mkDerivation {
name = "huaibai";
src = self;
buildInputs = with pkgs; [ zip python3 ];
buildPhase = ''
python to_latin.py
cp ${derani-fonts}/share/fonts/opentype/Guezueq.otf \
src/assets/minecraft/textures/font/guezueq.otf
cd src
zip -r ../Huaıbaı.zip *
cd ..
'';
installPhase = ''
mkdir $out
mv Huaıbaı.zip $out/
'';
};
}
);
}