Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libtiger / default.nix
blob7876c23bcc1dcea9b31d7167290a1b1fe0af1836
1 { stdenv, lib, fetchurl, autoreconfHook, pkg-config
2 , libkate, pango, cairo, darwin
3 }:
5 stdenv.mkDerivation rec {
6   pname = "libtiger";
7   version = "0.3.4";
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   };
14   patches = [
15     ./pkg-config.patch
16   ];
18   postPatch = ''
19     substituteInPlace configure.ac --replace "-Werror" "-Wno-error"
20   '';
22   nativeBuildInputs = [ autoreconfHook pkg-config ];
23   buildInputs = [ libkate pango cairo ]
24     ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.ApplicationServices;
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   };