2022-06-26 10:26:21 +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
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "synfig";
|
|
|
|
repo = "synfig";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-9vBYESaSgW/1FWH2uFBvPiYvxLlX0LLNnd4S7ACJcwI=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
ETL = stdenv.mkDerivation {
|
2022-06-26 10:26:21 +00:00
|
|
|
pname = "ETL";
|
|
|
|
inherit version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/ETL";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
glibmm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
synfig = stdenv.mkDerivation {
|
|
|
|
pname = "synfig";
|
2022-06-26 10:26:21 +00:00
|
|
|
inherit version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/synfig-core";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
|
|
|
intltool
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
ETL
|
|
|
|
boost
|
|
|
|
cairo
|
|
|
|
glibmm
|
|
|
|
mlt
|
|
|
|
libsigcxx
|
|
|
|
libxmlxx
|
|
|
|
pango
|
|
|
|
imagemagick
|
|
|
|
harfbuzz
|
|
|
|
freetype
|
|
|
|
fribidi
|
|
|
|
openexr
|
|
|
|
fftw
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "synfigstudio";
|
2022-06-26 10:26:21 +00:00
|
|
|
inherit version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/synfig-studio";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2022-06-26 10:26:21 +00:00
|
|
|
patchShebangs images/splash_screen_development.sh
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
preConfigure = ''
|
|
|
|
./bootstrap.sh
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
2022-11-21 17:40:18 +00:00
|
|
|
intltool
|
2022-06-26 10:26:21 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
ETL
|
|
|
|
synfig
|
|
|
|
boost
|
|
|
|
cairo
|
|
|
|
glibmm
|
|
|
|
gtk3
|
|
|
|
gtkmm3
|
|
|
|
imagemagick
|
|
|
|
libjack2
|
|
|
|
libsigcxx
|
|
|
|
libxmlxx
|
|
|
|
mlt
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
openexr
|
|
|
|
fftw
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
passthru = {
|
|
|
|
# Expose libraries and cli tools
|
|
|
|
inherit ETL synfig;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A 2D animation program";
|
|
|
|
homepage = "http://www.synfig.org";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|