git.iko.soy/typeable/nixpkgs
on master help sign in
fig2dev: 3.2.7b -> 3.2.8

Fixes the fig2ps2tex and pic2tpic scripts. Fixes CVE-2019-19746.

commit6974aa77120839c308483e62f3e226bc213d27a4 authorThomas Gerbet <thomas@gerbet.me> dateTue 19 Jan 2021, 22:37 (6 years ago) parenta15f1cd
1 file changed+14−8
pkgs/applications/graphics/fig2dev/default.nix+14−8
pkgs/applications/graphics/fig2dev/default.nix+14−8
@@ -1,26 +1,32 @@
1−{ lib, stdenv, fetchurl, ghostscript, libpng } :
1+{ lib, stdenv, fetchurl, ghostscript, libpng, makeWrapper
2+, coreutils, bc, gnugrep, gawk, gnused } :
23
3−let
4− version = "3.2.7b";
5−
6−in stdenv.mkDerivation {
4+stdenv.mkDerivation rec {
75 pname = "fig2dev";
8− inherit version;
6+ version = "3.2.8";
97
108 src = fetchurl {
119 url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz";
12− sha256 = "1ck8gnqgg13xkxq4hrdy706i4xdgrlckx6bi6wxm1g514121pp27";
10+ sha256 = "0zg29yqknfafyzmmln4k7kydfb2dapk3r8ffvlqhj3cm8fp5h4lk";
1311 };
1412
13+ nativeBuildInputs = [ makeWrapper ];
1514 buildInputs = [ libpng ];
1615
1716 GSEXE="${ghostscript}/bin/gs";
1817
18+ postInstall = ''
19+ wrapProgram $out/bin/fig2ps2tex \
20+ --set PATH ${lib.makeBinPath [ coreutils bc gnugrep gawk ]}
21+ wrapProgram $out/bin/pic2tpic \
22+ --set PATH ${lib.makeBinPath [ gnused ]}
23+ '';
24+
1925 meta = with lib; {
2026 description = "Tool to convert Xfig files to other formats";
2127 homepage = "http://mcj.sourceforge.net/";
2228 license = licenses.xfig;
2329 platforms = platforms.linux;
30+ maintainers = with maintainers; [ lesuisse ];
2431 };
2532}
26−