depot/third_party/nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix
Default email 48af15f7a5 Project import generated by Copybara.
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
2021-03-20 04:20:00 +00:00

26 lines
709 B
Nix

{ lib, stdenv, fetchurl, pkg-config, freetype, cmake }:
stdenv.mkDerivation rec {
version = "1.3.14";
pname = "graphite2";
src = fetchurl {
url = "https://github.com/silnrsi/graphite/releases/download/"
+ "${version}/graphite2-${version}.tgz";
sha256 = "1790ajyhk0ax8xxamnrk176gc9gvhadzy78qia4rd8jzm89ir7gr";
};
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [ freetype ];
patches = lib.optionals stdenv.isDarwin [ ./macosx.patch ];
doCheck = false; # fails, probably missing something
meta = with lib; {
description = "An advanced font engine";
maintainers = [ maintainers.raskin ];
platforms = platforms.unix;
license = licenses.lgpl21;
};
}