mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
de97cb794d
Fixes various security bugs with CVEs since 2017. Fixes #73645. Note that for 1.3.6 *ONLY*, the file was called `graphite-*.tgz` and not `graphite2-*.tgz`, that's why the URL changes as well.
28 lines
752 B
Nix
28 lines
752 B
Nix
{ stdenv, fetchurl, pkgconfig, freetype, cmake, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.3.13";
|
|
pname = "graphite2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/silnrsi/graphite/releases/download/"
|
|
+ "${version}/graphite2-${version}.tgz";
|
|
sha256 = "01jzhwnj1c3d68dmw15jdxly0hwkmd8ja4kw755rbkykn1ly2qyx";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|