about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix b/nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix
new file mode 100644
index 000000000000..f795dfef9e4c
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, pkgconfig, freetype, cmake, python }:
+
+stdenv.mkDerivation rec {
+  version = "1.3.6";
+  name = "graphite2-${version}";
+
+  src = fetchurl {
+    url = "https://github.com/silnrsi/graphite/releases/download/"
+      + "${version}/graphite-${version}.tgz";
+    sha256 = "0xdg6bc02bl8yz39l5i2skczfg17q4lif0qqan0dhvk0mibpcpj7";
+  };
+
+  nativeBuildInputs = [ pkgconfig cmake ];
+  buildInputs = [ freetype ];
+
+  patches = stdenv.lib.optionals stdenv.isDarwin [ ./macosx.patch ];
+
+  checkInputs = [ python ];
+  doCheck = false; # fails, probably missing something
+
+  meta = with stdenv.lib; {
+    description = "An advanced font engine";
+    maintainers = [ maintainers.raskin ];
+    platforms = platforms.unix;
+    license = licenses.lgpl21;
+  };
+}