nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6stdenvNoCC.mkDerivation (finalAttrs: {
7 pname = "explex-nf";
8 version = "0.0.3";
9
10 src = fetchzip {
11 url = "https://github.com/yuru7/Explex/releases/download/v${finalAttrs.version}/Explex_NF_v${finalAttrs.version}.zip";
12 hash = "sha256-X4CnYT5B7IyG1Z5Ex6CXCfX7Hz3vNb5bP+vq1Vjx8XI=";
13 };
14
15 installPhase = ''
16 runHook preInstall
17
18 install -Dm444 ExplexConsole_NF/*.ttf -t $out/share/fonts/truetype/explex-nf-console
19 install -Dm444 Explex35Console_NF/*.ttf -t $out/share/fonts/truetype/explex-nf-35console
20
21 runHook postInstall
22 '';
23 meta = {
24 description = "Composite font of 0xProto, IBM Plex Sans JP and nerd-fonts";
25 homepage = "https://github.com/yuru7/Explex";
26 changelog = "https://github.com/yuru7/Explex/releases/tag/v${finalAttrs.version}";
27 license = lib.licenses.ofl;
28 platforms = lib.platforms.all;
29 maintainers = [ lib.maintainers.r-aizawa ];
30 };
31})