2018-08-08 21:02:57 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, freetype, cmake, python }:
|
2013-10-14 08:36:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-14 15:18:57 +01:00
|
|
|
version = "1.3.6";
|
2013-10-14 08:36:39 +02:00
|
|
|
name = "graphite2-${version}";
|
2013-11-24 12:43:22 +01:00
|
|
|
|
2013-10-14 08:36:39 +02:00
|
|
|
src = fetchurl {
|
2016-03-14 15:18:57 +01:00
|
|
|
url = "https://github.com/silnrsi/graphite/releases/download/"
|
|
|
|
+ "${version}/graphite-${version}.tgz";
|
|
|
|
sha256 = "0xdg6bc02bl8yz39l5i2skczfg17q4lif0qqan0dhvk0mibpcpj7";
|
2013-10-14 08:36:39 +02:00
|
|
|
};
|
|
|
|
|
2018-05-11 19:05:39 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
buildInputs = [ freetype ];
|
2013-10-14 08:36:39 +02:00
|
|
|
|
2014-06-01 07:51:16 +02:00
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./macosx.patch ];
|
|
|
|
|
2018-08-08 21:02:57 +02:00
|
|
|
checkInputs = [ python ];
|
|
|
|
doCheck = false; # fails, probably missing something
|
|
|
|
|
2013-10-14 08:36:39 +02:00
|
|
|
meta = {
|
|
|
|
description = "An advanced font engine";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
2016-08-02 16:50:15 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-10-14 08:36:39 +02:00
|
|
|
};
|
|
|
|
}
|