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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

142 lines
2.1 KiB
Nix
Raw Normal View History

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";
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";
2014-11-01 23:46:07 +00:00
configureFlags = [
"--with-boost=${boost.dev}"
"--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-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
'';
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
];
enableParallelBuilding = true;
passthru = {
# Expose libraries and cli tools
inherit ETL synfig;
};
meta = with lib; {
2014-03-13 00:14:05 +00:00
description = "A 2D animation program";
homepage = "http://www.synfig.org";
2014-03-13 00:14:05 +00:00
license = licenses.gpl2Plus;
maintainers = [ maintainers.goibhniu ];
platforms = platforms.linux;
};
}