2018-08-08 20:02:57 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, freetype, cmake, python }:
|
2013-10-14 07:36:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-01 13:37:32 +01:00
|
|
|
version = "1.3.14";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "graphite2";
|
2013-11-24 11:43:22 +00:00
|
|
|
|
2013-10-14 07:36:39 +01:00
|
|
|
src = fetchurl {
|
2016-03-14 14:18:57 +00:00
|
|
|
url = "https://github.com/silnrsi/graphite/releases/download/"
|
2019-11-25 03:05:39 +00:00
|
|
|
+ "${version}/graphite2-${version}.tgz";
|
2020-04-01 13:37:32 +01:00
|
|
|
sha256 = "1790ajyhk0ax8xxamnrk176gc9gvhadzy78qia4rd8jzm89ir7gr";
|
2013-10-14 07:36:39 +01:00
|
|
|
};
|
|
|
|
|
2018-05-11 18:05:39 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
buildInputs = [ freetype ];
|
2013-10-14 07:36:39 +01:00
|
|
|
|
2014-06-01 06:51:16 +01:00
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./macosx.patch ];
|
|
|
|
|
2018-08-08 20:02:57 +01:00
|
|
|
checkInputs = [ python ];
|
|
|
|
doCheck = false; # fails, probably missing something
|
|
|
|
|
2018-10-27 14:27:09 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-14 07:36:39 +01:00
|
|
|
description = "An advanced font engine";
|
2018-10-27 14:27:09 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.lgpl21;
|
2013-10-14 07:36:39 +01:00
|
|
|
};
|
|
|
|
}
|