2023-03-15 16:39:30 +00:00
|
|
|
{ stdenv, lib, fetchurl, autoreconfHook, pkg-config
|
|
|
|
, libkate, pango, cairo, darwin
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "libtiger";
|
|
|
|
version = "0.3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libtiger/libtiger-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0rj1bmr9kngrgbxrjbn4f4f9pww0wmf6viflinq7ava7zdav4hkk";
|
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
patches = [
|
|
|
|
./pkg-config.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac --replace "-Werror" "-Wno-error"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libkate pango cairo ]
|
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.ApplicationServices;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://code.google.com/archive/p/libtiger/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Rendering library for Kate streams using Pango and Cairo";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = with lib.maintainers; [ matthewbauer ];
|
|
|
|
};
|
|
|
|
}
|