2006-12-08 02:17:21 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, imake
|
2015-09-15 11:13:22 +02:00
|
|
|
, xlibsWrapper, libXpm, libXmu, libXi, libXp, Xaw3d, libpng, libjpeg}:
|
2006-12-08 02:17:21 +01:00
|
|
|
|
2012-01-02 16:29:14 +01:00
|
|
|
let version = "3.2.5b"; in
|
2006-12-08 02:17:21 +01:00
|
|
|
stdenv.mkDerivation {
|
2012-01-02 16:29:14 +01:00
|
|
|
name = "xfig-${version}";
|
2006-12-08 02:17:21 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-02-21 15:45:53 +01:00
|
|
|
url = "mirror://sourceforge/mcj/xfig.${version}.full.tar.gz";
|
2012-01-02 16:29:14 +01:00
|
|
|
sha256 = "1hl5x49sgc0vap411whhcq6qhvh4xbjg7jggv7ih9pplg5nwy0aw";
|
2006-12-08 02:17:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2015-09-15 11:13:22 +02:00
|
|
|
buildInputs = [xlibsWrapper libXpm libXmu libXi libXp Xaw3d libpng libjpeg];
|
2012-01-02 16:29:14 +01:00
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ imake makeWrapper ];
|
2006-12-08 02:17:21 +01:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-20 23:00:56 +01:00
|
|
|
|
2015-10-13 21:51:53 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11";
|
2006-12-08 02:17:21 +01:00
|
|
|
|
2012-01-02 16:29:14 +01:00
|
|
|
patches =
|
|
|
|
let
|
2013-01-28 19:40:02 +01:00
|
|
|
debPrefix = "http://patch-tracker.debian.org/patch/series/dl/xfig/1:3.2.5.b-3";
|
2012-01-02 16:29:14 +01:00
|
|
|
in
|
|
|
|
[
|
|
|
|
(fetchurl {
|
2013-01-28 19:40:02 +01:00
|
|
|
url = "${debPrefix}/35_CVE-2010-4262.patch";
|
|
|
|
sha256 = "1pj669sz49wzjvvm96gwbnani7wqi0ijh21imqdzqw47qxdv7zp5";
|
2012-01-02 16:29:14 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2013-01-28 19:40:02 +01:00
|
|
|
url = "${debPrefix}/13_remove_extra_libs.patch";
|
|
|
|
sha256 = "1qb14ay0c8xrjzhi21jl7sl8mdzxardldzpnflkzml774bbpn8av";
|
2012-01-02 16:29:14 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2013-01-28 19:40:02 +01:00
|
|
|
url = "${debPrefix}/36_libpng15.patch";
|
|
|
|
sha256 = "0jd5bqj7sj9bbnxg2d0y6zmv4ka4qif2x4zc84ngdqga5433anvn";
|
2012-01-02 16:29:14 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2006-12-08 02:17:21 +01:00
|
|
|
meta = {
|
|
|
|
description = "An interactive drawing tool for X11";
|
2018-08-18 00:45:54 +02:00
|
|
|
homepage = http://mcj.sourceforge.net/;
|
|
|
|
license = {
|
|
|
|
url = "http://mcj.sourceforge.net/authors.html#xfig";
|
|
|
|
};
|
2018-05-01 00:47:47 +02:00
|
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
|
2006-12-08 02:17:21 +01:00
|
|
|
};
|
|
|
|
}
|