blob: 18df3237e271fbe5c9ef995ff3ca65e166b852fe (
plain)
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
|
{
lib,
stdenv,
python3,
udev-gothic,
}:
stdenv.mkDerivation {
pname = "nvim-setcellwidths-table-for-udev-gothic";
version = "1.0.0";
src = ./.;
nativeBuildInputs = [
(python3.withPackages (ps: [ ps.fonttools ]))
];
buildPhase = ''
python main.py ${udev-gothic}/share/fonts/udev-gothic/UDEVGothic35-Regular.ttf > setcellwidths.lua
'';
installPhase = ''
mkdir -p $out
cp setcellwidths.lua $out
'';
meta = with lib; {
description = "Generate setcellwidths() table for udev-gothic font";
license = licenses.ofl;
};
}
|