Merge pull request #110022 from LeSuisse/fig2dev-3.2.8

fig2dev: 3.2.7b -> 3.2.8
This commit is contained in:
Sandro 2021-01-20 20:13:06 +01:00 committed by GitHub
commit 8dd173c322
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 8 deletions

View file

@ -5128,6 +5128,12 @@
githubId = 42153076;
name = "Alexey Nikashkin";
};
lesuisse = {
email = "thomas@gerbet.me";
github = "LeSuisse";
githubId = 737767;
name = "Thomas Gerbet";
};
lethalman = {
email = "lucabru@src.gnome.org";
github = "lethalman";

View file

@ -1,26 +1,32 @@
{ lib, stdenv, fetchurl, ghostscript, libpng } :
{ lib, stdenv, fetchurl, ghostscript, libpng, makeWrapper
, coreutils, bc, gnugrep, gawk, gnused } :
let
version = "3.2.7b";
in stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "fig2dev";
inherit version;
version = "3.2.8";
src = fetchurl {
url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz";
sha256 = "1ck8gnqgg13xkxq4hrdy706i4xdgrlckx6bi6wxm1g514121pp27";
sha256 = "0zg29yqknfafyzmmln4k7kydfb2dapk3r8ffvlqhj3cm8fp5h4lk";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ libpng ];
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; {
description = "Tool to convert Xfig files to other formats";
homepage = "http://mcj.sourceforge.net/";
license = licenses.xfig;
platforms = platforms.linux;
maintainers = with maintainers; [ lesuisse ];
};
}