about summary refs log tree commit diff
path: root/pkgs/development/libraries/libtiger/default.nix
blob: 149f5e65fc418f2d2439e8a41383611fe9f1c825 (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
{ stdenv, lib, fetchurl, autoreconfHook, pkg-config
, libkate, pango, cairo, darwin
}:

stdenv.mkDerivation rec {
  pname = "libtiger";
  version = "0.3.4";

  src = fetchurl {
    url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libtiger/libtiger-${version}.tar.gz";
    sha256 = "0rj1bmr9kngrgbxrjbn4f4f9pww0wmf6viflinq7ava7zdav4hkk";
  };

  patches = [
    ./pkg-config.patch
  ];

  postPatch = ''
    substituteInPlace configure.ac --replace "-Werror" "-Wno-error"
  '';

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  buildInputs = [ libkate pango cairo ]
    ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.ApplicationServices;

  meta = {
    homepage = "https://code.google.com/archive/p/libtiger/";
    description = "Rendering library for Kate streams using Pango and Cairo";
    platforms = lib.platforms.unix;
    license = lib.licenses.lgpl21Plus;
    maintainers = with lib.maintainers; [ matthewbauer ];
  };
}