From 2c533f6f57565cc9b5475c8bd796883644355998 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Tue, 11 Feb 2025 18:45:13 +0100 Subject: [PATCH] Added derivation for ttf2psf --- pkgs/default.nix | 1 + pkgs/fonts/ttf2psf.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/fonts/ttf2psf.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index a65bcac..6d3aeb6 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -6,6 +6,7 @@ let overlay = final: prev: { dina-vector = prev.callPackage ./fonts/dina-vector.nix { }; dina-psf = prev.callPackage ./fonts/dina-psf.nix { }; + ttf2psf = prev.callPackage ./fonts/ttf2psf.nix { }; wqy-zenhei = prev.callPackage ./fonts/wqy-zenhei.nix { }; wqy-microhei = prev.callPackage ./fonts/wqy-microhei.nix { }; wqy-bitmapsong = prev.callPackage ./fonts/wqy-bitmapsong.nix { }; diff --git a/pkgs/fonts/ttf2psf.nix b/pkgs/fonts/ttf2psf.nix new file mode 100644 index 0000000..6164d9b --- /dev/null +++ b/pkgs/fonts/ttf2psf.nix @@ -0,0 +1,32 @@ +{ + pkgs, + ... +}: + +pkgs.stdenv.mkDerivation { + pname = "ttf2psf"; + version = "1.0.0"; + + src = pkgs.fetchFromGitHub { + owner = "NateChoe1"; + repo = "ttf2psf"; + rev = "8db09d05385f595c320eccae4c48ff4393ca5bde"; + sha256 = "A"; + }; + + unpackPhase = '' + true + ''; + + buildInputs = with pkgs; [ + tree + ]; + + buildPhase = '' + tree > tree.txt + ''; + + installPhase = '' + install -Dm644 -t $out/debug tree.txt + ''; +}