about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/sd/SDL2_Pango/package.nix
blob: e81d392ca6d61e99b0a7965d7940a3c6c690e0fa (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
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, freetype
, pango
, SDL2
, darwin
}:

stdenv.mkDerivation rec {
  pname = "sdl2-pango";
  version = "2.1.5";

  src = fetchFromGitHub {
    owner = "markuskimius";
    repo = "SDL2_Pango";
    rev = "v${version}";
    hash = "sha256-8SL5ylxi87TuKreC8m2kxlLr8rcmwYYvwkp4vQZ9dkc=";
  };

  outputs = [ "out" "dev" ];

  strictDeps = true;

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    SDL2
  ];

  buildInputs = [
    freetype
    pango
    SDL2
  ] ++ lib.optionals stdenv.isDarwin [
    darwin.libobjc
  ];

  meta = with lib; {
    description = "A library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts";
    homepage = "https://github.com/markuskimius/SDL2_Pango";
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ rardiol ];
    platforms = platforms.all;
  };
}