Added derivation for ttf2psf

This commit is contained in:
Jan-Bulthuis 2025-02-11 18:45:13 +01:00
parent 7bd321e3f6
commit 2c533f6f57
2 changed files with 33 additions and 0 deletions

View File

@ -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 { };

32
pkgs/fonts/ttf2psf.nix Normal file
View File

@ -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
'';
}