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

66 lines
1.7 KiB
Nix
Raw Normal View History

2015-09-13 18:58:22 +00:00
{ stdenv, fetchurl, boost, cairo, fontsConf, gettext, glibmm, gtk3, gtkmm3
, libjack2, libsigcxx, libtool, libxmlxx, makeWrapper, mlt-qt5, pango, pkgconfig
, imagemagick, intltool
2014-03-13 00:14:05 +00:00
}:
let
2015-09-13 18:58:22 +00:00
version = "1.0.1";
2014-03-13 00:14:05 +00:00
ETL = stdenv.mkDerivation rec {
2015-09-13 18:58:22 +00:00
name = "ETL-0.04.19";
2014-03-13 00:14:05 +00:00
src = fetchurl {
2015-09-13 18:58:22 +00:00
url = "http://download.tuxfamily.org/synfig/releases/${version}/${name}.tar.gz";
sha256 = "1zmqv2fa5zxprza3wbhk5mxjk7491jqshxxai92s7fdiza0nhs91";
2014-03-13 00:14:05 +00:00
};
};
synfig = stdenv.mkDerivation rec {
name = "synfig-${version}";
src = fetchurl {
2015-09-13 18:58:22 +00:00
url = "http://download.tuxfamily.org/synfig/releases/${version}/${name}.tar.gz";
sha256 = "0l1f2xwmzds32g46fqwsq7j5qlnfps6944chbv14d3ynzgyyp1i3";
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
buildInputs = [
2015-09-13 18:58:22 +00:00
ETL boost cairo gettext glibmm mlt-qt5 libsigcxx libtool libxmlxx pango
2014-03-13 00:14:05 +00:00
pkgconfig
];
};
in
stdenv.mkDerivation rec {
name = "synfigstudio-${version}";
src = fetchurl {
2015-09-13 18:58:22 +00:00
url = "http://download.tuxfamily.org/synfig/releases/${version}/${name}.tar.gz";
sha256 = "0jfa946rfh0dbagp18zknlj9ffrd4h45xcy2dh2vlhn6jdm08yfi";
2014-11-01 23:46:07 +00:00
};
2014-03-13 00:14:05 +00:00
buildInputs = [
2015-09-13 18:58:22 +00:00
ETL boost cairo gettext glibmm gtk3 gtkmm3 imagemagick intltool
libjack2 libsigcxx libtool libxmlxx makeWrapper mlt-qt5 pkgconfig
synfig
2014-11-01 23:46:07 +00:00
];
2015-09-13 18:58:22 +00:00
postInstall = ''
wrapProgram "$out/bin/synfigstudio" \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
'';
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;
};
}