blob: fc69e398e44d5ec4f94b7ae2b43ecb4e383cc69a (
plain) (
blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ lib, stdenv, fetchurl, libfaketime
, xorg
}:
stdenv.mkDerivation rec {
pname = "envypn-font";
version = "1.7.1";
src = fetchurl {
url = "https://ywstd.fr/files/p/envypn-font/envypn-font-${version}.tar.gz";
sha256 = "bda67b6bc6d5d871a4d46565d4126729dfb8a0de9611dae6c68132a7b7db1270";
};
nativeBuildInputs = [ libfaketime xorg.fonttosfnt xorg.mkfontscale ];
unpackPhase = ''
tar -xzf $src --strip-components=1
'';
buildPhase = ''
runHook preBuild
# convert pcf fonts to otb
for i in *e.pcf.gz; do
faketime -f "1970-01-01 00:00:01" \
fonttosfnt -v -o "$(basename "$i" .pcf.gz)".otb "$i"
done
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -D -m 644 -t "$out/share/fonts/misc" *.otb *.pcf.gz
mkfontdir "$out/share/fonts/misc"
runHook postInstall
'';
meta = with lib; {
description = ''
Readable bitmap font inspired by Envy Code R
'';
homepage = "http://ywstd.fr/p/pj/#envypn";
license = licenses.miros;
platforms = platforms.all;
maintainers = with maintainers; [ erdnaxe ];
};
}
|