1{ stdenv, lib, fetchurl, autoreconfHook, pkg-config
2, libkate, pango, cairo, darwin
3}:
4
5stdenv.mkDerivation rec {
6 pname = "libtiger";
7 version = "0.3.4";
8
9 src = fetchurl {
10 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libtiger/libtiger-${version}.tar.gz";
11 sha256 = "0rj1bmr9kngrgbxrjbn4f4f9pww0wmf6viflinq7ava7zdav4hkk";
12 };
13
14 patches = [
15 ./pkg-config.patch
16 ];
17
18 postPatch = ''
19 substituteInPlace configure.ac --replace "-Werror" "-Wno-error"
20 '';
21
22 nativeBuildInputs = [ autoreconfHook pkg-config ];
23 buildInputs = [ libkate pango cairo ]
24 ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.ApplicationServices;
25
26 meta = {
27 homepage = "https://code.google.com/archive/p/libtiger/";
28 description = "A rendering library for Kate streams using Pango and Cairo";
29 platforms = lib.platforms.unix;
30 license = lib.licenses.lgpl21Plus;
31 maintainers = with lib.maintainers; [ matthewbauer ];
32 };
33}