1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix
Niklas Hambüchen de97cb794d graphite2: 1.3.6 -> 1.3.13
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.
2019-11-26 17:51:05 +01:00

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;
};
}