about summary refs log tree commit diff
diff options
context:
space:
mode:
authorners <ners@gmx.ch>2024-05-09 14:51:01 +0200
committerners <ners@gmx.ch>2024-05-15 18:08:38 +0200
commitc9b0660ce8d1d7932d4faa5e5184593a18a1ae90 (patch)
treea2b8279082bd6b8da39f0f4e8e632f46bdda8b08
parente48763abd3c6fcfd40d5c9d362bcf486e74dbfb6 (diff)
bdf2ttf: init at 2.0-unstable-2016-07-03
-rw-r--r--pkgs/by-name/bd/bdf2ttf/package.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/bd/bdf2ttf/package.nix b/pkgs/by-name/bd/bdf2ttf/package.nix
new file mode 100644
index 0000000000000..c12100bb3662f
--- /dev/null
+++ b/pkgs/by-name/bd/bdf2ttf/package.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation {
+  pname = "bdf2ttf";
+  version = "2.0-unstable-2016-07-03";
+
+  src = fetchFromGitHub {
+    owner = "koron";
+    repo = "bdf2ttf";
+    rev = "1baae7b70a432153e3d876966e47a78f0e572eac";
+    hash = "sha256-235BTcTaC/30yLlgo0OO2cp3YCHWa87GFJGBx5lmz6o=";
+  };
+
+  dontConfigure = true;
+
+  makeFlags = [ "gcc" ];
+
+  installPhase = ''
+    runHook preInstall
+    install -Dm755 bdf2ttf $out/bin/bdf2ttf
+    runHook postInstall
+  '';
+
+  meta = {
+    description = "Convert BDF font file to TTF (embed bitmap as is, not convert to vector)";
+    homepage = "https://github.com/koron/bdf2ttf";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ ners ];
+    platforms = lib.platforms.all;
+    broken = stdenv.isDarwin;
+  };
+}