depot/third_party/nixpkgs/pkgs/by-name/sd/SDL_Pango/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

57 lines
1.2 KiB
Nix

{
lib,
SDL,
autoreconfHook,
fetchpatch,
fetchurl,
pango,
pkg-config,
stdenv,
# Boolean flags
enableSdltest ? (!stdenv.isDarwin),
}:
stdenv.mkDerivation (finalAttrs: {
pname = "SDL_Pango";
version = "0.1.2";
src = fetchurl {
url = "mirror://sourceforge/sdlpango/SDL_Pango-${finalAttrs.version}.tar.gz";
hash = "sha256-f3XTuXrPcHxpbqEmQkkGIE6/oHZgFi3pJRc83QJX66Q=";
};
patches = [
(fetchpatch {
name = "0000-api_additions.patch";
url = "https://sources.debian.org/data/main/s/sdlpango/0.1.2-6/debian/patches/api_additions.patch";
hash = "sha256-jfr+R4tIVZfYoaY4i+aNSGLwJGEipnuKqD2O9orP5QI=";
})
./0001-fixes.patch
];
nativeBuildInputs = [
SDL
autoreconfHook
pkg-config
];
buildInputs = [
SDL
pango
];
configureFlags = [
(lib.enableFeature enableSdltest "sdltest")
];
strictDeps = true;
meta = {
homepage = "https://sdlpango.sourceforge.net/";
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;
};
})