33 src = fetchFromGitHub {
37 hash = "sha256-D+FUEyzJ74l0USq3V9HIRAfgyJfRP372aEKDqF8+hsQ=";
40 ETL = stdenv.mkDerivation {
44 sourceRoot = "${src.name}/ETL";
55 synfig = stdenv.mkDerivation {
59 sourceRoot = "${src.name}/synfig-core";
63 "--with-boost=${boost.dev}"
64 "--with-boost-libdir=${boost.out}/lib"
66 ++ lib.optionals stdenv.cc.isClang [
67 # Newer versions of clang default to C++17, but synfig and some of its dependencies use deprecated APIs that
68 # are removed in C++17. Setting the language version to C++14 allows it to build.
72 enableParallelBuilding = true;
97 ++ lib.optionals stdenv.hostPlatform.isDarwin [
98 darwin.apple_sdk.frameworks.Foundation
102 stdenv.mkDerivation {
103 pname = "synfigstudio";
106 sourceRoot = "${src.name}/synfig-studio";
109 patchShebangs images/splash_screen_development.sh
116 configureFlags = lib.optionals stdenv.cc.isClang [
117 # Newer versions of clang default to C++17, but synfig and some of its dependencies use deprecated APIs that
118 # are removed in C++17. Setting the language version to C++14 allows it to build.
119 "CXXFLAGS=-std=c++14"
122 nativeBuildInputs = [
147 enableParallelBuilding = true;
150 # Expose libraries and cli tools
155 description = "2D animation program";
156 homepage = "http://www.synfig.org";
157 license = licenses.gpl3Plus;
159 platforms = platforms.linux ++ platforms.darwin;