about summary refs log tree commit diff
path: root/pkgs/by-name/sd/SDL_Pango/package.nix
blob: 8c4160d98684a8a839682d06369edcd91a17a99c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  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;
  };
})