mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
Add synfig: A 2D animation program
This commit is contained in:
parent
59a060523e
commit
fcfbe753e7
56
pkgs/applications/graphics/synfigstudio/default.nix
Normal file
56
pkgs/applications/graphics/synfigstudio/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ stdenv, fetchurl, boost, cairo, gettext, glibmm, gtk, gtkmm
|
||||
, libsigcxx, libtool, libxmlxx, pango, pkgconfig, imagemagick
|
||||
, intltool
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.64.1";
|
||||
|
||||
ETL = stdenv.mkDerivation rec {
|
||||
name = "ETL-0.04.17";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/synfig/${name}.tar.gz";
|
||||
sha256 = "13kpiswgcpsif9fwcplqr0405aqavqn390cjnivkn3pxv0d2q8iy";
|
||||
};
|
||||
};
|
||||
|
||||
synfig = stdenv.mkDerivation rec {
|
||||
name = "synfig-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/synfig/synfig-${version}.tar.gz";
|
||||
sha256 = "1b4ksxnqbaq4rxlvasmrvk7z4jvjbsg4ns3cns2qcnz64dyvbgda";
|
||||
};
|
||||
|
||||
patches = [ ./synfig-cstring.patch ];
|
||||
|
||||
buildInputs = [
|
||||
ETL boost cairo gettext glibmm libsigcxx libtool libxmlxx pango
|
||||
pkgconfig
|
||||
];
|
||||
|
||||
configureFlags = [ "--with-boost-libdir=${boost}/lib" ];
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "synfigstudio-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/synfig/${name}.tar.gz";
|
||||
sha256 = "0nl6vpsn5dcjd5qhbrmd0j4mr3wddvymkg9414m77cdpz4l8b9v2";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
ETL boost cairo gettext glibmm gtk gtkmm imagemagick intltool
|
||||
intltool libsigcxx libtool libxmlxx pkgconfig synfig
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A 2D animation program";
|
||||
homepage = http://www.synfig.org;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = [ maintainers.goibhniu ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
12
pkgs/applications/graphics/synfigstudio/synfig-cstring.patch
Normal file
12
pkgs/applications/graphics/synfigstudio/synfig-cstring.patch
Normal file
@ -0,0 +1,12 @@
|
||||
http://www.synfig.org/issues/thebuggenie/synfig/issues/438
|
||||
--- a/src/modules/mod_png/trgt_png.cpp
|
||||
+++ b/src/modules/mod_png/trgt_png.cpp
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <ETL/misc>
|
||||
+#include <cstring>
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -8614,6 +8614,8 @@ let
|
||||
rake = rake_10_1_0;
|
||||
};
|
||||
|
||||
synfigstudio = callPackage ../applications/graphics/synfigstudio { };
|
||||
|
||||
msmtp = callPackage ../applications/networking/msmtp { };
|
||||
|
||||
imapfilter = callPackage ../applications/networking/mailreaders/imapfilter.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user