2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, libfaketime
|
2020-02-10 00:57:53 +01:00
|
|
|
, fonttosfnt, mkfontscale
|
|
|
|
}:
|
2017-04-12 23:13:12 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2017-04-12 23:13:12 +02:00
|
|
|
name = "envypn-font-1.7.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://ywstd.fr/files/p/envypn-font/envypn-font-1.7.1.tar.gz";
|
|
|
|
sha256 = "bda67b6bc6d5d871a4d46565d4126729dfb8a0de9611dae6c68132a7b7db1270";
|
|
|
|
};
|
|
|
|
|
2020-02-10 00:57:53 +01:00
|
|
|
nativeBuildInputs = [ libfaketime fonttosfnt mkfontscale ];
|
2017-04-12 23:13:12 +02:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
tar -xzf $src --strip-components=1
|
|
|
|
'';
|
|
|
|
|
2020-02-10 00:57:53 +01:00
|
|
|
buildPhase = ''
|
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2017-04-12 23:13:12 +02:00
|
|
|
installPhase = ''
|
2020-08-21 14:18:18 +02:00
|
|
|
install -D -m 644 -t "$out/share/fonts/misc" *.otb *.pcf.gz
|
2020-02-10 00:57:53 +01:00
|
|
|
mkfontdir "$out/share/fonts/misc"
|
2017-04-12 23:13:12 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-04-12 23:13:12 +02:00
|
|
|
description = ''
|
|
|
|
Readable bitmap font inspired by Envy Code R
|
|
|
|
'';
|
|
|
|
homepage = "http://ywstd.fr/p/pj/#envypn";
|
|
|
|
license = licenses.miros;
|
2020-02-15 01:32:36 +01:00
|
|
|
platforms = platforms.all;
|
2017-04-12 23:13:12 +02:00
|
|
|
};
|
|
|
|
}
|