|
Cillian de Róiste |
626d1b |
/*
|
|
Cillian de Róiste |
626d1b |
This is a nix expression to build Synfig from source on any distro
|
|
Cillian de Róiste |
626d1b |
where nix is installed. This will install all the dependencies from
|
|
Cillian de Róiste |
626d1b |
the nixpkgs repo and build Synfig without interfering with the host
|
|
Cillian de Róiste |
626d1b |
distro.
|
|
Cillian de Róiste |
626d1b |
|
|
Cillian de Róiste |
626d1b |
http://nixos.org/nix/
|
|
Cillian de Róiste |
626d1b |
|
|
Cillian de Róiste |
626d1b |
To quickly install nix, you can run the following command:
|
|
Cillian de Róiste |
626d1b |
|
|
Cillian de Róiste |
626d1b |
$ curl -L http://git.io/nix-install.sh | bash
|
|
Cillian de Róiste |
626d1b |
|
|
Cillian de Róiste |
626d1b |
To initialise it:
|
|
Cillian de Róiste |
626d1b |
|
|
Cillian de Róiste |
626d1b |
$ source ~/.nix-profile/etc/profile.d/nix.sh
|
|
Cillian de Róiste |
626d1b |
|
|
Cillian de Róiste |
626d1b |
*/
|
|
Cillian de Róiste |
626d1b |
|
|
|
3901b5 |
with import <nixpkgs> {};</nixpkgs>
|
|
|
3901b5 |
|
|
Cillian de Róiste |
626d1b |
let
|
|
|
3901b5 |
version = "git";
|
|
|
3901b5 |
in
|
|
Cillian de Róiste |
626d1b |
stdenv.mkDerivation rec {
|
|
|
3901b5 |
name = "synfigstudio-${version}";
|
|
Cillian de Róiste |
626d1b |
|
|
|
da30a8 |
src = [ ../autobuild ../ETL ../synfig-core ../synfig-studio ] ;
|
|
Cillian de Róiste |
626d1b |
|
|
|
5e783e |
nativeBuildInputs = [ pkgconfig autoreconfHook gettext gnumake makeWrapper ];
|
|
|
3901b5 |
buildInputs = [
|
|
|
f9f5a8 |
boost cairo ffmpeg fftw intltool glibmm gnome3.defaultIconTheme gtk3 gtkmm3
|
|
|
5e783e |
imagemagick intltool libjpeg libjack2 libsigcxx libxmlxx mlt
|
|
|
32d01d |
pango which
|
|
Cillian de Róiste |
626d1b |
];
|
|
BobSynfig |
d05fc1 |
|
|
|
8cebc4 |
preConfigure = "";
|
|
|
8cebc4 |
configureScript = "";
|
|
BobSynfig |
d05fc1 |
|
|
|
8cebc4 |
BOOST_CONFIGURE_OPTIONS = " --with-boost=${boost.dev} --with-boost-libdir=${boost.out}/lib ";
|
|
|
917586 |
ADWAITA_PATH = "${gnome3.adwaita-icon-theme.out}";
|
|
|
604ba3 |
MAKE_WRAPPER_PATH = "${makeWrapper.out}";
|
|
BobSynfig |
d05fc1 |
|
|
|
da30a8 |
sourceRoot = ".";
|
|
BobSynfig |
d05fc1 |
|
|
|
da30a8 |
postUnpack = ''
|
|
|
da30a8 |
touch configure.ac
|
|
|
da30a8 |
'';
|
|
BobSynfig |
d05fc1 |
|
|
|
8cebc4 |
buildPhase = ''
|
|
|
da30a8 |
PREFIX=$out ./autobuild/build.sh
|
|
|
da30a8 |
'';
|
|
BobSynfig |
d05fc1 |
|
|
|
da30a8 |
installPhase = ''
|
|
|
da30a8 |
echo
|
|
|
8cebc4 |
'';
|
|
Cillian de Róiste |
626d1b |
|
|
|
3901b5 |
postInstall = ''
|
|
|
8cebc4 |
wrapProgram "./_production/build/bin/synfigstudio" \
|
|
|
c332d2 |
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
|
|
c332d2 |
--prefix XCURSOR_PATH : "${gnome3.adwaita-icon-theme.out}/share/icons" \
|
|
|
206484 |
--set XCURSOR_THEME "Adwaita"
|
|
|
3901b5 |
'';
|
|
|
3901b5 |
|
|
|
3901b5 |
enableParallelBuilding = true;
|
|
|
3901b5 |
|
|
|
3901b5 |
meta = with stdenv.lib; {
|
|
|
3901b5 |
description = "A 2D animation program";
|
|
|
3901b5 |
homepage = http://www.synfig.org;
|
|
|
3901b5 |
license = licenses.gpl2Plus;
|
|
|
3901b5 |
maintainers = [ maintainers.goibhniu ];
|
|
|
3901b5 |
platforms = platforms.linux;
|
|
|
3901b5 |
};
|
|
Cillian de Róiste |
626d1b |
}
|