2024-05-05 21:36:10 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
SDL,
|
|
|
|
autoreconfHook,
|
|
|
|
fetchpatch,
|
|
|
|
fetchurl,
|
|
|
|
pango,
|
|
|
|
pkg-config,
|
|
|
|
stdenv,
|
|
|
|
# Boolean flags
|
|
|
|
enableSdltest ? (!stdenv.hostPlatform.isDarwin),
|
|
|
|
}:
|
2019-10-23 11:33:13 +00:00
|
|
|
|
2024-05-05 21:36:10 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-10-23 11:33:13 +00:00
|
|
|
pname = "SDL_Pango";
|
|
|
|
version = "0.1.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-05 21:36:10 +00:00
|
|
|
url = "mirror://sourceforge/sdlpango/SDL_Pango-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-f3XTuXrPcHxpbqEmQkkGIE6/oHZgFi3pJRc83QJX66Q=";
|
2019-10-23 11:33:13 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 21:20:11 +00:00
|
|
|
patches = [
|
2019-10-23 11:33:13 +00:00
|
|
|
(fetchpatch {
|
2024-05-05 21:36:10 +00:00
|
|
|
name = "0000-api_additions.patch";
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://sources.debian.org/data/main/s/sdlpango/0.1.2-6/debian/patches/api_additions.patch";
|
2024-05-05 21:36:10 +00:00
|
|
|
hash = "sha256-jfr+R4tIVZfYoaY4i+aNSGLwJGEipnuKqD2O9orP5QI=";
|
2019-10-23 11:33:13 +00:00
|
|
|
})
|
2024-05-05 21:36:10 +00:00
|
|
|
./0001-fixes.patch
|
2019-10-23 11:33:13 +00:00
|
|
|
];
|
|
|
|
|
2024-05-05 21:36:10 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
SDL
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2019-10-23 11:33:13 +00:00
|
|
|
|
2024-05-05 21:36:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
pango
|
|
|
|
];
|
2019-10-23 11:33:13 +00:00
|
|
|
|
2024-05-05 21:36:10 +00:00
|
|
|
configureFlags = [
|
|
|
|
(lib.enableFeature enableSdltest "sdltest")
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
meta = {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://sdlpango.sourceforge.net/";
|
2024-05-05 21:36:10 +00:00
|
|
|
description = "Connects the Pango rendering engine to SDL";
|
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = lib.teams.sdl.members
|
|
|
|
++ (with lib.maintainers; [ puckipedia ]);
|
|
|
|
inherit (SDL.meta) platforms;
|
2019-10-23 11:33:13 +00:00
|
|
|
};
|
2024-05-05 21:36:10 +00:00
|
|
|
})
|