2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchpatch, fetchurl, SDL, autoreconfHook, pango, pkg-config }:
|
2019-10-23 11:33:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "SDL_Pango";
|
|
|
|
version = "0.1.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/sdlpango/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "197baw1dsg0p4pljs5k0fshbyki00r4l49m1drlpqw6ggawx6xbz";
|
|
|
|
};
|
|
|
|
|
2021-01-19 21:20:11 +00:00
|
|
|
patches = [
|
2019-10-23 11:33:13 +00:00
|
|
|
(fetchpatch {
|
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";
|
2019-10-23 11:33:13 +00:00
|
|
|
sha256 = "00p5ry5gd3ixm257p9i2c4jg0qj8ipk8nf56l7c9fma8id3zxyld";
|
|
|
|
})
|
|
|
|
./fixes.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = "autoreconf -i -f";
|
2021-05-26 05:34:06 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
|
2019-10-23 11:33:13 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2019-10-23 11:33:13 +00:00
|
|
|
buildInputs = [ SDL pango ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-10-23 11:33:13 +00:00
|
|
|
description = "Connects the Pango rendering engine to SDL";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.all;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://sdlpango.sourceforge.net/";
|
2019-10-23 11:33:13 +00:00
|
|
|
maintainers = with maintainers; [ puckipedia ];
|
|
|
|
};
|
|
|
|
}
|