nixpkgs/pkgs/by-name/sd/SDL_Pango/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Normal View History

{
lib,
SDL,
autoreconfHook,
fetchpatch,
fetchurl,
pango,
pkg-config,
stdenv,
# Boolean flags
enableSdltest ? (!stdenv.hostPlatform.isDarwin),
}:
2019-10-23 11:33:13 +00:00
stdenv.mkDerivation (finalAttrs: {
2019-10-23 11:33:13 +00:00
pname = "SDL_Pango";
version = "0.1.2";
src = fetchurl {
url = "mirror://sourceforge/sdlpango/SDL_Pango-${finalAttrs.version}.tar.gz";
hash = "sha256-f3XTuXrPcHxpbqEmQkkGIE6/oHZgFi3pJRc83QJX66Q=";
2019-10-23 11:33:13 +00:00
};
patches = [
2019-10-23 11:33:13 +00:00
(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=";
2019-10-23 11:33:13 +00:00
})
./0001-fixes.patch
2019-10-23 11:33:13 +00:00
];
nativeBuildInputs = [
SDL
autoreconfHook
pkg-config
];
2019-10-23 11:33:13 +00:00
buildInputs = [
SDL
pango
];
2019-10-23 11:33:13 +00:00
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;
2019-10-23 11:33:13 +00:00
};
})