Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
testers,
|
|
validatePkgConfig,
|
|
sdl3,
|
|
cmake,
|
|
freetype,
|
|
harfbuzz,
|
|
glib,
|
|
ninja,
|
|
plutosvg,
|
|
fixDarwinDylibNames,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "sdl3-ttf";
|
|
version = "3.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libsdl-org";
|
|
repo = "SDL_ttf";
|
|
tag = "release-${finalAttrs.version}";
|
|
hash = "sha256-g7LfLxs7yr7bezQWPWn8arNuPxCfYLCO4kzXmLRUUSY=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
doCheck = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
validatePkgConfig
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
|
|
|
|
buildInputs = [
|
|
sdl3
|
|
freetype
|
|
harfbuzz
|
|
glib
|
|
plutosvg
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "SDLTTF_STRICT" true)
|
|
(lib.cmakeBool "SDLTTF_HARFBUZZ" true)
|
|
(lib.cmakeBool "SDLTTF_PLUTOSVG" true)
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"release-(3\\..*)"
|
|
];
|
|
};
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = {
|
|
description = "SDL TrueType font library";
|
|
homepage = "https://github.com/libsdl-org/SDL_ttf";
|
|
changelog = "https://github.com/libsdl-org/SDL_ttf/releases/tag/${toString finalAttrs.src.tag}";
|
|
license = lib.licenses.zlib;
|
|
maintainers = with lib.maintainers; [
|
|
charain
|
|
Emin017
|
|
];
|
|
teams = [ lib.teams.sdl ];
|
|
pkgConfigModules = [ "sdl3-ttf" ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|