git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #126593 from ncfavier/efont-unicode

efont-unicode: init at 0.4.2

commitd7523d36ee793b98d50c5fab0df086b14b215800 authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com> dateSun 13 Jun 2021, 20:41 (5 years ago) parent338576fc64e4d2
3 files changed+66
maintainers/maintainer-list.nix+10 pkgs/data/fonts/efont-unicode/default.nix+54 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+10
@@ -7211,6 +7211,16 @@
72117211 githubId = 1386642;
72127212 name = "Noah Brenowitz";
72137213 };
7214+ ncfavier = {
7215+ email = "n@monade.li";
7216+ github = "ncfavier";
7217+ githubId = 4323933;
7218+ name = "Naïm Favier";
7219+ keys = [{
7220+ longkeyid = "rsa2048/0x49B07322580B7EE2";
7221+ fingerprint = "51A0 705E 7DD2 3CBC 5EAA B43E 49B0 7322 580B 7EE2";
7222+ }];
7223+ };
72147224 nckx = {
72157225 email = "github@tobias.gr";
72167226 github = "nckx";
pkgs/data/fonts/efont-unicode/default.nixnew file+54
@@ -0,0 +1,54 @@
1+{ lib, stdenv, fetchzip, libfaketime, xorg }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "efont-unicode";
5+ version = "0.4.2";
6+
7+ src = fetchzip {
8+ url = "http://openlab.ring.gr.jp/efont/dist/unicode-bdf/${pname}-bdf-${version}.tar.bz2";
9+ sha256 = "0bib3jgikq8s1m96imw4mlgbl5cbq1bs5sqig74s2l2cdfx3jaqc";
10+ };
11+
12+ nativeBuildInputs = with xorg;
13+ [ libfaketime bdftopcf fonttosfnt mkfontscale ];
14+
15+ buildPhase = ''
16+ runHook preBuild
17+
18+ # convert bdf fonts to pcf
19+ for f in *.bdf; do
20+ bdftopcf -t -o "''${f%.bdf}.pcf" "$f"
21+ done
22+ gzip -n -9 *.pcf
23+
24+ # convert bdf fonts to otb
25+ for f in *.bdf; do
26+ faketime -f "1970-01-01 00:00:01" \
27+ fonttosfnt -v -m 2 -o "''${f%.bdf}.otb" "$f"
28+ done
29+
30+ runHook postBuild
31+ '';
32+
33+ installPhase = ''
34+ runHook preInstall
35+
36+ dir=share/fonts/misc
37+ install -D -m 644 -t "$out/$dir" *.otb *.pcf.gz
38+ install -D -m 644 -t "$bdf/$dir" *.bdf
39+ mkfontdir "$out/$dir"
40+ mkfontdir "$bdf/$dir"
41+
42+ runHook postInstall
43+ '';
44+
45+ outputs = [ "out" "bdf" ];
46+
47+ meta = with lib; {
48+ description = "The /efont/ Unicode bitmap font";
49+ homepage = "http://openlab.ring.gr.jp/efont/unicode/";
50+ license = licenses.bsd3;
51+ platforms = platforms.all;
52+ maintainers = [ maintainers.ncfavier ];
53+ };
54+}
pkgs/top-level/all-packages.nix+2
@@ -21858,6 +21858,8 @@ in
2185821858
2185921859 edusong = callPackage ../data/fonts/edusong { };
2186021860
21861+ efont-unicode = callPackage ../data/fonts/efont-unicode { };
21862+
2186121863 elliptic_curves = callPackage ../data/misc/elliptic_curves { };
2186221864
2186321865 equilux-theme = callPackage ../data/themes/equilux-theme { };