nixpkgs/pkgs/applications/graphics/synfigstudio/default.nix

61 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, cairo, fontsConf, gettext, glibmm, gtk, gtkmm
2014-03-13 01:14:05 +01:00
, libsigcxx, libtool, libxmlxx, pango, pkgconfig, imagemagick
, intltool
}:
let
version = "0.64.1";
ETL = stdenv.mkDerivation rec {
name = "ETL-0.04.17";
src = fetchurl {
url = "mirror://sourceforge/synfig/${name}.tar.gz";
sha256 = "13kpiswgcpsif9fwcplqr0405aqavqn390cjnivkn3pxv0d2q8iy";
};
};
synfig = stdenv.mkDerivation rec {
name = "synfig-${version}";
src = fetchurl {
url = "mirror://sourceforge/synfig/synfig-${version}.tar.gz";
sha256 = "1b4ksxnqbaq4rxlvasmrvk7z4jvjbsg4ns3cns2qcnz64dyvbgda";
};
patches = [ ./synfig-cstring.patch ];
buildInputs = [
2014-09-19 19:56:08 +02:00
ETL boost boost.lib cairo gettext glibmm libsigcxx libtool libxmlxx pango
2014-03-13 01:14:05 +01:00
pkgconfig
];
2014-09-19 19:56:08 +02:00
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ];
2014-03-13 01:14:05 +01:00
};
in
stdenv.mkDerivation rec {
name = "synfigstudio-${version}";
src = fetchurl {
url = "mirror://sourceforge/synfig/${name}.tar.gz";
sha256 = "0nl6vpsn5dcjd5qhbrmd0j4mr3wddvymkg9414m77cdpz4l8b9v2";
};
buildInputs = [
ETL boost cairo fontsConf gettext glibmm gtk gtkmm imagemagick intltool
2014-03-13 01:14:05 +01:00
intltool libsigcxx libtool libxmlxx pkgconfig synfig
];
preBuild = ''
export FONTCONFIG_FILE=${fontsConf}
'';
2014-03-13 01:14:05 +01:00
meta = with stdenv.lib; {
description = "A 2D animation program";
homepage = http://www.synfig.org;
license = licenses.gpl2Plus;
maintainers = [ maintainers.goibhniu ];
platforms = platforms.linux;
};
}