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

71 lines
1.7 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, cairo, fontsConf, gettext, glibmm, gtk, gtkmm
2014-03-13 00:14:05 +00:00
, libsigcxx, libtool, libxmlxx, pango, pkgconfig, imagemagick
, intltool
}:
let
2015-02-07 17:21:18 +00:00
version = "0.64.3";
2014-03-13 00:14:05 +00:00
ETL = stdenv.mkDerivation rec {
name = "ETL-0.04.17";
src = fetchurl {
url = "mirror://sourceforge/synfig/${name}.tar.gz";
2015-02-07 17:21:18 +00:00
sha256 = "0rb9czkgan41q6xlck97kh77g176vjm1wnq620sqky7k2hiahr3s";
2014-03-13 00:14:05 +00:00
};
};
synfig = stdenv.mkDerivation rec {
name = "synfig-${version}";
src = fetchurl {
url = "mirror://sourceforge/synfig/synfig-${version}.tar.gz";
2015-02-07 17:21:18 +00:00
sha256 = "0p4wqjidb4k3viahck4wzbh777f5ifpivn4vxhxs5fbq8nsvqksh";
2014-03-13 00:14:05 +00:00
};
2014-11-01 23:46:07 +00:00
configureFlags = [
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.lib}/lib"
];
2014-03-13 00:14:05 +00:00
patches = [ ./synfig-cstring.patch ];
buildInputs = [
2014-10-01 20:55:40 +01:00
ETL boost cairo gettext glibmm libsigcxx libtool libxmlxx pango
2014-03-13 00:14:05 +00:00
pkgconfig
];
};
in
stdenv.mkDerivation rec {
name = "synfigstudio-${version}";
src = fetchurl {
2014-11-01 23:46:07 +00:00
url = "mirror://sourceforge/synfig/${name}.tar.gz";
2015-02-07 17:21:18 +00:00
sha256 = "1li3ac8qvg25h9fgym0zywnq5bg3sgbv162xs4c6pwksn75i6gsv";
2014-11-01 23:46:07 +00:00
};
2014-03-13 00:14:05 +00:00
buildInputs = [
ETL boost cairo gettext glibmm gtk gtkmm imagemagick intltool
2014-03-13 00:14:05 +00:00
intltool libsigcxx libtool libxmlxx pkgconfig synfig
];
2014-11-01 23:46:07 +00:00
configureFlags = [
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.lib}/lib"
];
preBuild = ''
export FONTCONFIG_FILE=${fontsConf}
'';
enableParallelBuilding = true;
2014-03-13 00:14:05 +00:00
meta = with stdenv.lib; {
description = "A 2D animation program";
homepage = http://www.synfig.org;
license = licenses.gpl2Plus;
maintainers = [ maintainers.goibhniu ];
platforms = platforms.linux;
};
}