4577779af6
svn path=/nixpkgs/trunk/; revision=12114
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
args: with args;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "inkscape-0.46";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sf/inkscape/${name}.tar.gz";
|
|
sha256 = "0flrjqa68vnnn8lrhj86xpa6h2cyzrvjy6873v9id092f86ix1li";
|
|
};
|
|
|
|
# Work around Python misdetection and set `PYTHON_LIBS' to
|
|
# "-L/nix/store/... -lpython2.4" instead of "/nix/store/.../libpython2.4.so".
|
|
# Changed to 2.5
|
|
patches = [ ./configure-python-libs.patch ];
|
|
|
|
propagatedBuildInputs = [
|
|
# Python is used at run-time to execute scripts, e.g., those from
|
|
# the "Effects" menu.
|
|
python pyxml
|
|
];
|
|
|
|
buildInputs = [
|
|
pkgconfig perl perlXMLParser gtk libXft fontconfig libpng zlib popt boehmgc
|
|
libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext
|
|
makeWrapper
|
|
];
|
|
|
|
configureFlags = "--with-python";
|
|
|
|
preBuild = ''
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I./extension/script"
|
|
'';
|
|
|
|
postInstall = ''
|
|
# Make sure PyXML modules can be found at run-time.
|
|
for i in "$out/bin/"*
|
|
do
|
|
wrapProgram "$i" --prefix PYTHONPATH : \
|
|
"$(toPythonPath ${pyxml})" || \
|
|
exit 2
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
license = "GPL";
|
|
homepage = http://www.inkscape.org;
|
|
description = ''Inkscape is a feature-rich vector graphics editor
|
|
that edits files in the W3C SVG (Scalable Vector
|
|
Graphics) file format.'';
|
|
};
|
|
}
|