pkgs/ttfs: init

This commit is contained in:
Aaron Bieber 2023-11-17 12:22:38 -07:00
parent 6b42fd5d78
commit 30d7e62880
No known key found for this signature in database
3 changed files with 42 additions and 0 deletions

View File

@ -282,6 +282,7 @@
isUnstable = true; isUnstable = true;
}; };
femtolisp = upkgs.callPackage ./pkgs/femtolisp.nix { }; femtolisp = upkgs.callPackage ./pkgs/femtolisp.nix { };
ttfs = upkgs.callPackage ./pkgs/ttfs.nix { };
fyne = upkgs.callPackage ./pkgs/fyne.nix { inherit upkgs; }; fyne = upkgs.callPackage ./pkgs/fyne.nix { inherit upkgs; };
flake-warn = flake-warn =
spkgs.callPackage ./pkgs/flake-warn.nix { inherit spkgs; }; spkgs.callPackage ./pkgs/flake-warn.nix { inherit spkgs; };

View File

@ -369,6 +369,7 @@ in
#yubioath-flutter #yubioath-flutter
zig zig
(callPackage ../../pkgs/ttfs.nix { })
(callPackage ../../pkgs/clilol.nix { }) (callPackage ../../pkgs/clilol.nix { })
(callPackage ../../pkgs/iamb.nix { }) (callPackage ../../pkgs/iamb.nix { })
(callPackage ../../pkgs/kobuddy.nix { (callPackage ../../pkgs/kobuddy.nix {

40
pkgs/ttfs.nix Normal file
View File

@ -0,0 +1,40 @@
{ stdenv
, lib
, fetchgit
, gnumake
, pkg-config
, SDL2
, SDL2_ttf
,
}:
stdenv.mkDerivation {
pname = "ttfs";
version = "2023-03-27";
src = fetchgit {
url = "https://git.sr.ht/~ft/ttfs";
rev = "c672c1919865fe26e2bd50ea31920117d0db6b09";
hash = "sha256-VHUlfgF8jzGmLO2gxuHFDoKqF92c4Tae7x+8KK1xnug=";
};
buildInputs = [ gnumake ];
nativeBuildInputs = [
pkg-config
SDL2
SDL2_ttf
];
installPhase = ''
mkdir -p $out/bin
cp ttfs $out/bin
'';
meta = {
description = "TTF/OTF/BDFPlan9Font converter";
homepage = "https://git.sr.ht/~ft/ttfs";
license = lib.licenses.publicDomain;
maintainer = with lib.maintainers; [ qbit ];
mainProgram = "ttfs";
};
}