Merge pull request #126593 from ncfavier/efont-unicode

efont-unicode: init at 0.4.2
This commit is contained in:
Michele Guerini Rocco 2021-06-13 20:41:51 +02:00 committed by GitHub
commit d7523d36ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 0 deletions

View File

@ -7211,6 +7211,16 @@
githubId = 1386642;
name = "Noah Brenowitz";
};
ncfavier = {
email = "n@monade.li";
github = "ncfavier";
githubId = 4323933;
name = "Naïm Favier";
keys = [{
longkeyid = "rsa2048/0x49B07322580B7EE2";
fingerprint = "51A0 705E 7DD2 3CBC 5EAA B43E 49B0 7322 580B 7EE2";
}];
};
nckx = {
email = "github@tobias.gr";
github = "nckx";

View File

@ -0,0 +1,54 @@
{ lib, stdenv, fetchzip, libfaketime, xorg }:
stdenv.mkDerivation rec {
pname = "efont-unicode";
version = "0.4.2";
src = fetchzip {
url = "http://openlab.ring.gr.jp/efont/dist/unicode-bdf/${pname}-bdf-${version}.tar.bz2";
sha256 = "0bib3jgikq8s1m96imw4mlgbl5cbq1bs5sqig74s2l2cdfx3jaqc";
};
nativeBuildInputs = with xorg;
[ libfaketime bdftopcf fonttosfnt mkfontscale ];
buildPhase = ''
runHook preBuild
# convert bdf fonts to pcf
for f in *.bdf; do
bdftopcf -t -o "''${f%.bdf}.pcf" "$f"
done
gzip -n -9 *.pcf
# convert bdf fonts to otb
for f in *.bdf; do
faketime -f "1970-01-01 00:00:01" \
fonttosfnt -v -m 2 -o "''${f%.bdf}.otb" "$f"
done
runHook postBuild
'';
installPhase = ''
runHook preInstall
dir=share/fonts/misc
install -D -m 644 -t "$out/$dir" *.otb *.pcf.gz
install -D -m 644 -t "$bdf/$dir" *.bdf
mkfontdir "$out/$dir"
mkfontdir "$bdf/$dir"
runHook postInstall
'';
outputs = [ "out" "bdf" ];
meta = with lib; {
description = "The /efont/ Unicode bitmap font";
homepage = "http://openlab.ring.gr.jp/efont/unicode/";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ maintainers.ncfavier ];
};
}

View File

@ -21858,6 +21858,8 @@ in
edusong = callPackage ../data/fonts/edusong { };
efont-unicode = callPackage ../data/fonts/efont-unicode { };
elliptic_curves = callPackage ../data/misc/elliptic_curves { };
equilux-theme = callPackage ../data/themes/equilux-theme { };