32 src = fetchFromGitHub {
36 hash = "sha256-D+FUEyzJ74l0USq3V9HIRAfgyJfRP372aEKDqF8+hsQ=";
39 ETL = stdenv.mkDerivation {
43 sourceRoot = "${src.name}/ETL";
54 synfig = stdenv.mkDerivation {
58 sourceRoot = "${src.name}/synfig-core";
61 "--with-boost=${boost.dev}"
62 "--with-boost-libdir=${boost.out}/lib"
63 ] ++ lib.optionals stdenv.cc.isClang [
64 # Newer versions of clang default to C++17, but synfig and some of its dependencies use deprecated APIs that
65 # are removed in C++17. Setting the language version to C++14 allows it to build.
69 enableParallelBuilding = true;
92 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
93 darwin.apple_sdk.frameworks.Foundation
98 pname = "synfigstudio";
101 sourceRoot = "${src.name}/synfig-studio";
104 patchShebangs images/splash_screen_development.sh
111 configureFlags = lib.optionals stdenv.cc.isClang [
112 # Newer versions of clang default to C++17, but synfig and some of its dependencies use deprecated APIs that
113 # are removed in C++17. Setting the language version to C++14 allows it to build.
114 "CXXFLAGS=-std=c++14"
117 nativeBuildInputs = [
142 enableParallelBuilding = true;
145 # Expose libraries and cli tools
150 description = "2D animation program";
151 homepage = "http://www.synfig.org";
152 license = licenses.gpl3Plus;
154 platforms = platforms.linux ++ platforms.darwin;