1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation {
8 pname = "bdf2ttf";
9 version = "2.0-unstable-2016-07-03";
10
11 src = fetchFromGitHub {
12 owner = "koron";
13 repo = "bdf2ttf";
14 rev = "1baae7b70a432153e3d876966e47a78f0e572eac";
15 hash = "sha256-235BTcTaC/30yLlgo0OO2cp3YCHWa87GFJGBx5lmz6o=";
16 };
17
18 dontConfigure = true;
19
20 makeFlags = [ "gcc" ];
21
22 installPhase = ''
23 runHook preInstall
24 install -Dm755 bdf2ttf $out/bin/bdf2ttf
25 runHook postInstall
26 '';
27
28 meta = {
29 description = "Convert BDF font file to TTF (embed bitmap as is, not convert to vector)";
30 homepage = "https://github.com/koron/bdf2ttf";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ ners ];
33 platforms = lib.platforms.all;
34 broken = stdenv.hostPlatform.isDarwin;
35 };
36}