1{
2 stdenv,
3 lib,
4 fetchurl,
5 pkg-config,
6 autoreconfHook,
7 glib,
8 libticonv,
9 libtifiles2,
10 libticables2,
11 xz,
12 bzip2,
13 acl,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "libticalcs2";
18 version = "1.1.9";
19 src = fetchurl {
20 url = "mirror://sourceforge/tilp/${pname}-${version}.tar.bz2";
21 sha256 = "08c9wgrdnyqcs45mx1bjb8riqq81bzfkhgaijxzn96rhpj40fy3n";
22 };
23
24 nativeBuildInputs = [
25 autoreconfHook
26 pkg-config
27 ];
28
29 buildInputs = [
30 glib
31 libticonv
32 libtifiles2
33 libticables2
34 xz
35 bzip2
36 ]
37 ++ lib.optionals stdenv.hostPlatform.isLinux [
38 acl
39 ];
40
41 meta = with lib; {
42 changelog = "http://lpg.ticalc.org/prj_tilp/news.html";
43 description = "This library is part of the TiLP framework";
44 homepage = "http://lpg.ticalc.org/prj_tilp/";
45 license = licenses.gpl2Plus;
46 maintainers = with maintainers; [ siraben ];
47 platforms = with platforms; linux ++ darwin;
48 };
49}