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