2006-12-08 01:17:21 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, imake
|
|
|
|
, x11, libXpm, libXmu, libXi, libXp, Xaw3d, libpng, libjpeg}:
|
|
|
|
|
2012-01-02 15:29:14 +00:00
|
|
|
let version = "3.2.5b"; in
|
2006-12-08 01:17:21 +00:00
|
|
|
stdenv.mkDerivation {
|
2012-01-02 15:29:14 +00:00
|
|
|
name = "xfig-${version}";
|
2006-12-08 01:17:21 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-02-21 14:45:53 +00:00
|
|
|
url = "mirror://sourceforge/mcj/xfig.${version}.full.tar.gz";
|
2012-01-02 15:29:14 +00:00
|
|
|
sha256 = "1hl5x49sgc0vap411whhcq6qhvh4xbjg7jggv7ih9pplg5nwy0aw";
|
2006-12-08 01:17:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2012-01-02 15:29:14 +00:00
|
|
|
buildInputs = [x11 libXpm libXmu libXi libXp Xaw3d libpng libjpeg];
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ imake makeWrapper ];
|
2006-12-08 01:17:21 +00:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${libXpm}/include/X11";
|
|
|
|
|
2012-01-02 15:29:14 +00:00
|
|
|
patches =
|
|
|
|
let
|
2013-01-28 18:40:02 +00:00
|
|
|
debPrefix = "http://patch-tracker.debian.org/patch/series/dl/xfig/1:3.2.5.b-3";
|
2012-01-02 15:29:14 +00:00
|
|
|
in
|
|
|
|
[
|
|
|
|
(fetchurl {
|
2013-01-28 18:40:02 +00:00
|
|
|
url = "${debPrefix}/35_CVE-2010-4262.patch";
|
|
|
|
sha256 = "1pj669sz49wzjvvm96gwbnani7wqi0ijh21imqdzqw47qxdv7zp5";
|
2012-01-02 15:29:14 +00:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2013-01-28 18:40:02 +00:00
|
|
|
url = "${debPrefix}/13_remove_extra_libs.patch";
|
|
|
|
sha256 = "1qb14ay0c8xrjzhi21jl7sl8mdzxardldzpnflkzml774bbpn8av";
|
2012-01-02 15:29:14 +00:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2013-01-28 18:40:02 +00:00
|
|
|
url = "${debPrefix}/36_libpng15.patch";
|
|
|
|
sha256 = "0jd5bqj7sj9bbnxg2d0y6zmv4ka4qif2x4zc84ngdqga5433anvn";
|
2012-01-02 15:29:14 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2006-12-08 01:17:21 +00:00
|
|
|
meta = {
|
|
|
|
description = "An interactive drawing tool for X11";
|
2008-01-30 19:49:42 +00:00
|
|
|
homepage = http://xfig.org;
|
2012-02-21 14:45:53 +00:00
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2006-12-08 01:17:21 +00:00
|
|
|
};
|
|
|
|
}
|