fig2dev: 3.2.7b -> 3.2.8
Fixes the fig2ps2tex and pic2tpic scripts. Fixes CVE-2019-19746.
This commit is contained in:
parent
a15f1cd7d1
commit
6974aa7712
@ -1,26 +1,32 @@
|
|||||||
{ lib, stdenv, fetchurl, ghostscript, libpng } :
|
{ lib, stdenv, fetchurl, ghostscript, libpng, makeWrapper
|
||||||
|
, coreutils, bc, gnugrep, gawk, gnused } :
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
version = "3.2.7b";
|
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
|
||||||
pname = "fig2dev";
|
pname = "fig2dev";
|
||||||
inherit version;
|
version = "3.2.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz";
|
url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz";
|
||||||
sha256 = "1ck8gnqgg13xkxq4hrdy706i4xdgrlckx6bi6wxm1g514121pp27";
|
sha256 = "0zg29yqknfafyzmmln4k7kydfb2dapk3r8ffvlqhj3cm8fp5h4lk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ libpng ];
|
buildInputs = [ libpng ];
|
||||||
|
|
||||||
GSEXE="${ghostscript}/bin/gs";
|
GSEXE="${ghostscript}/bin/gs";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/fig2ps2tex \
|
||||||
|
--set PATH ${lib.makeBinPath [ coreutils bc gnugrep gawk ]}
|
||||||
|
wrapProgram $out/bin/pic2tpic \
|
||||||
|
--set PATH ${lib.makeBinPath [ gnused ]}
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool to convert Xfig files to other formats";
|
description = "Tool to convert Xfig files to other formats";
|
||||||
homepage = "http://mcj.sourceforge.net/";
|
homepage = "http://mcj.sourceforge.net/";
|
||||||
license = licenses.xfig;
|
license = licenses.xfig;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ lesuisse ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user