2022-06-25 13:47:26 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, autoreconfHook
|
|
|
|
, wrapGAppsHook
|
|
|
|
|
|
|
|
, boost
|
|
|
|
, cairo
|
|
|
|
, gettext
|
|
|
|
, glibmm
|
|
|
|
, gtk3
|
|
|
|
, gtkmm3
|
|
|
|
, libjack2
|
|
|
|
, libsigcxx
|
|
|
|
, libxmlxx
|
|
|
|
, mlt
|
|
|
|
, pango
|
|
|
|
, imagemagick
|
|
|
|
, intltool
|
|
|
|
, gnome
|
|
|
|
, harfbuzz
|
|
|
|
, freetype
|
|
|
|
, fribidi
|
|
|
|
, openexr
|
|
|
|
, fftw
|
2014-03-13 00:14:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2022-06-25 13:47:26 +00:00
|
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "synfig";
|
|
|
|
repo = "synfig";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-9vBYESaSgW/1FWH2uFBvPiYvxLlX0LLNnd4S7ACJcwI=";
|
|
|
|
};
|
2014-03-13 00:14:05 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
ETL = stdenv.mkDerivation {
|
2022-06-25 13:47:26 +00:00
|
|
|
pname = "ETL";
|
|
|
|
inherit version src;
|
2014-03-13 00:14:05 +00:00
|
|
|
|
2022-06-25 13:47:26 +00:00
|
|
|
sourceRoot = "source/ETL";
|
2016-01-26 21:10:12 +00:00
|
|
|
|
2022-06-25 13:47:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
glibmm
|
|
|
|
];
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
synfig = stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "synfig";
|
2022-06-25 13:47:26 +00:00
|
|
|
inherit version src;
|
2014-03-13 00:14:05 +00:00
|
|
|
|
2022-06-25 13:47:26 +00:00
|
|
|
sourceRoot = "source/synfig-core";
|
2016-01-26 21:10:12 +00:00
|
|
|
|
2014-11-01 23:46:07 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost.dev}"
|
2016-04-27 21:41:28 +00:00
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
2014-11-01 23:46:07 +00:00
|
|
|
];
|
|
|
|
|
2022-06-25 13:47:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
|
|
|
intltool
|
|
|
|
];
|
2014-03-13 00:14:05 +00:00
|
|
|
buildInputs = [
|
2022-06-25 13:47:26 +00:00
|
|
|
ETL
|
|
|
|
boost
|
|
|
|
cairo
|
|
|
|
glibmm
|
|
|
|
mlt
|
|
|
|
libsigcxx
|
|
|
|
libxmlxx
|
|
|
|
pango
|
|
|
|
imagemagick
|
|
|
|
harfbuzz
|
|
|
|
freetype
|
|
|
|
fribidi
|
|
|
|
openexr
|
|
|
|
fftw
|
2014-03-13 00:14:05 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "synfigstudio";
|
2022-06-25 13:47:26 +00:00
|
|
|
inherit version src;
|
2014-03-13 00:14:05 +00:00
|
|
|
|
2022-06-25 13:47:26 +00:00
|
|
|
sourceRoot = "source/synfig-studio";
|
2016-01-26 21:10:12 +00:00
|
|
|
|
2016-05-13 14:35:11 +00:00
|
|
|
postPatch = ''
|
2022-06-25 13:47:26 +00:00
|
|
|
patchShebangs images/splash_screen_development.sh
|
2016-05-13 14:35:11 +00:00
|
|
|
'';
|
|
|
|
|
2022-06-25 13:47:26 +00:00
|
|
|
preConfigure = ''
|
|
|
|
./bootstrap.sh
|
|
|
|
'';
|
2016-01-26 21:10:12 +00:00
|
|
|
|
2022-06-25 13:47:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2014-03-13 00:14:05 +00:00
|
|
|
buildInputs = [
|
2022-06-25 13:47:26 +00:00
|
|
|
ETL
|
|
|
|
synfig
|
|
|
|
boost
|
|
|
|
cairo
|
|
|
|
glibmm
|
|
|
|
gtk3
|
|
|
|
gtkmm3
|
|
|
|
imagemagick
|
|
|
|
intltool
|
|
|
|
libjack2
|
|
|
|
libsigcxx
|
|
|
|
libxmlxx
|
|
|
|
mlt
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
openexr
|
|
|
|
fftw
|
2014-11-01 23:46:07 +00:00
|
|
|
];
|
|
|
|
|
2014-11-26 22:11:00 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-06-25 13:48:03 +00:00
|
|
|
passthru = {
|
|
|
|
# Expose libraries and cli tools
|
|
|
|
inherit ETL synfig;
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-03-13 00:14:05 +00:00
|
|
|
description = "A 2D animation program";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.synfig.org";
|
2014-03-13 00:14:05 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|