summaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/presage/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/libraries/presage/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/libraries/presage/default.nix')
-rw-r--r--pkgs/development/libraries/presage/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/development/libraries/presage/default.nix b/pkgs/development/libraries/presage/default.nix
new file mode 100644
index 000000000000..df15e73f73cf
--- /dev/null
+++ b/pkgs/development/libraries/presage/default.nix
@@ -0,0 +1,69 @@
+{ lib
+, stdenv
+, fetchurl
+, fetchpatch
+, autoreconfHook
+, dbus
+, doxygen
+, fontconfig
+, gettext
+, graphviz
+, help2man
+, pkg-config
+, sqlite
+, tinyxml
+, cppunit
+}:
+
+stdenv.mkDerivation rec {
+ pname = "presage";
+ version = "0.9.1";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/presage/presage/${version}/presage-${version}.tar.gz";
+ sha256 = "0rm3b3zaf6bd7hia0lr1wyvi1rrvxkn7hg05r5r1saj0a3ingmay";
+ };
+
+ patches = [
+ (fetchpatch {
+ url = "https://git.alpinelinux.org/aports/plain/community/presage/gcc6.patch";
+ sha256 = "0243nx1ygggmsly7057vndb4pkjxg9rpay5gyqqrq9jjzjzh63dj";
+ })
+ ./fixed-cppunit-detection.patch
+ ];
+
+ nativeBuildInputs = [
+ autoreconfHook
+ doxygen
+ fontconfig
+ gettext
+ graphviz
+ help2man
+ pkg-config
+ ];
+
+ preBuild = ''
+ export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
+ '';
+
+ buildInputs = [
+ dbus
+ sqlite
+ tinyxml
+ ];
+
+ checkInputs = [
+ cppunit
+ ];
+
+ doCheck = true;
+
+ checkTarget = "check";
+
+ meta = with lib; {
+ description = "An intelligent predictive text entry system";
+ homepage = "https://presage.sourceforge.io/";
+ license = licenses.gpl2Plus;
+ maintainers = with maintainers; [ dotlambda ];
+ };
+}