2015-04-06 13:33:39 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, libX11, libXaw }:
|
2005-12-03 00:21:40 +01:00
|
|
|
|
2015-04-06 13:33:39 +02:00
|
|
|
let
|
|
|
|
getPatch = { name, sha256 }: fetchpatch {
|
|
|
|
inherit name sha256;
|
|
|
|
url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/${name}"
|
|
|
|
+ "?h=packages/t1lib&id=643a4c2c58e70072b5bc1e9e4624162517b58357";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = map getPatch [
|
|
|
|
{ name = "lib-cleanup.diff"; sha256 = "1w3q1y4zk0y4mf2s2x9z4cd8d4af8i868c8837p40mz3dqrai4zp"; }
|
|
|
|
{ name = "format-security.diff"; sha256 = "0cca94bif9dsc6iwpcnk1504gb3sl3nsqhni85c21q9aywyz26l3"; }
|
|
|
|
{ name = "CVE-2011-0764.diff"; sha256 = "1j0y3f38im7srpqjg9jvx8as6sxkz8gw7hglcxnxl9qylx8mr2jh"; }
|
|
|
|
{ name = "CVE-2011-1552_1553_1554.patch"; sha256 = "16cyq6jhyhh8912j8hapx9pq4rzxk36ljlkxlnyi7i3wr8iz1dir"; }
|
|
|
|
{ name = "CVE-2010-2642.patch"; sha256 = "175zvyr9v1xs22k2svgxqjcpz5nihfa7j46hn9nzvkqcrhm5m9y8"; }
|
2017-01-25 13:53:31 +01:00
|
|
|
# this ^ also fixes CVE-2011-5244
|
2015-04-06 13:33:39 +02:00
|
|
|
];
|
|
|
|
in
|
2005-12-03 00:21:40 +01:00
|
|
|
stdenv.mkDerivation {
|
2010-09-09 11:43:33 +02:00
|
|
|
name = "t1lib-5.1.2";
|
|
|
|
|
2005-12-03 00:21:40 +01:00
|
|
|
src = fetchurl {
|
2015-01-03 18:40:37 +01:00
|
|
|
url = "mirror://metalab/libs/graphics/t1lib-5.1.2.tar.gz";
|
2010-09-09 11:43:33 +02:00
|
|
|
sha256 = "0nbvjpnmcznib1nlgg8xckrmsw3haa154byds2h90y2g0nsjh4w2";
|
2005-12-03 00:21:40 +01:00
|
|
|
};
|
2015-04-06 13:33:39 +02:00
|
|
|
inherit patches;
|
2010-09-09 11:43:33 +02:00
|
|
|
|
2015-04-06 13:33:39 +02:00
|
|
|
buildInputs = [ libX11 libXaw ];
|
2006-12-27 19:34:35 +01:00
|
|
|
buildFlags = "without_doc";
|
2015-04-06 13:33:39 +02:00
|
|
|
|
2015-05-20 22:41:23 +02:00
|
|
|
postInstall = stdenv.lib.optional (!stdenv.isDarwin) "chmod +x $out/lib/*.so.*"; # ??
|
2015-04-06 13:33:39 +02:00
|
|
|
|
2018-10-27 15:33:08 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A type 1 font rasterizer library for UNIX/X11";
|
|
|
|
homepage = http://www.t1lib.org/;
|
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2005-12-03 00:21:40 +01:00
|
|
|
}
|