Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / presage / default.nix
blob8f7e15867099f2f2862128bb96f7b314af401ab6
1 { lib
2 , stdenv
3 , fetchurl
4 , fetchpatch
5 , autoreconfHook
6 , dbus
7 , doxygen
8 , fontconfig
9 , gettext
10 , graphviz
11 , help2man
12 , pkg-config
13 , sqlite
14 , tinyxml
15 , cppunit
18 stdenv.mkDerivation rec {
19   pname = "presage";
20   version = "0.9.1";
22   src = fetchurl {
23     url = "mirror://sourceforge/presage/presage/${version}/presage-${version}.tar.gz";
24     sha256 = "0rm3b3zaf6bd7hia0lr1wyvi1rrvxkn7hg05r5r1saj0a3ingmay";
25   };
27   patches = [
28     (fetchpatch {
29       name = "gcc6.patch";
30       url = "https://git.alpinelinux.org/aports/plain/community/presage/gcc6.patch?id=40e2044c9ecb36eacb3a1fd043f09548d210dc01";
31       sha256 = "0243nx1ygggmsly7057vndb4pkjxg9rpay5gyqqrq9jjzjzh63dj";
32     })
33     ./fixed-cppunit-detection.patch
34     # fix gcc11 build
35     (fetchpatch {
36       name = "presage-0.9.1-gcc11.patch";
37       url = "https://build.opensuse.org/public/source/openSUSE:Factory/presage/presage-0.9.1-gcc11.patch?rev=3f8b4b19c99276296d6ea595cc6c431f";
38       sha256 = "sha256-pLrIFXvJHRvv4x9gBIfal4Y68lByDE3XE2NZNiAXe9k=";
39     })
40   ];
42   nativeBuildInputs = [
43     autoreconfHook
44     doxygen
45     fontconfig
46     gettext
47     graphviz
48     help2man
49     pkg-config
50   ];
52   preBuild = ''
53     export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
54   '';
56   buildInputs = [
57     dbus
58     sqlite
59     tinyxml
60   ];
62   nativeCheckInputs = [
63     cppunit
64   ];
66   doCheck = true;
68   checkTarget = "check";
70   meta = with lib; {
71     description = "An intelligent predictive text entry system";
72     homepage = "https://presage.sourceforge.io/";
73     license = licenses.gpl2Plus;
74     maintainers = with maintainers; [ dotlambda ];
75   };