2012-02-10 11:13:39 +01:00
|
|
|
{stdenv, fetchurl, panotools, cmake, wxGTK, libtiff, libpng, openexr, boost
|
|
|
|
, pkgconfig, exiv2, gettext, ilmbase, enblendenfuse, autopanosiftc, mesa
|
|
|
|
, freeglut, glew, libXmu, libXi, tclap }:
|
2009-04-05 23:41:38 +02:00
|
|
|
|
2009-12-12 19:58:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-02-10 11:13:39 +01:00
|
|
|
name = "hugin-2011.4.0";
|
2009-04-05 23:41:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-05-07 00:33:50 +02:00
|
|
|
url = "mirror://sourceforge/hugin/${name}.tar.bz2";
|
2012-02-10 11:13:39 +01:00
|
|
|
sha256 = "1bnxljgqxzfdz14l7y29wzi52x1a38mghsjavnr28fr4vfmqwjrf";
|
2009-04-05 23:41:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";
|
|
|
|
|
2012-02-10 11:13:39 +01:00
|
|
|
#NIX_LDFLAGS = "-lrt";
|
2009-04-05 23:41:38 +02:00
|
|
|
|
2012-02-10 11:13:39 +01:00
|
|
|
buildInputs = [ panotools wxGTK libtiff libpng openexr boost tclap
|
2009-12-12 19:58:40 +01:00
|
|
|
exiv2 gettext ilmbase mesa freeglut glew libXmu libXi ];
|
2009-12-10 23:19:52 +01:00
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2012-02-10 11:13:39 +01:00
|
|
|
|
|
|
|
propagatedUserEnvPackages = [ enblendenfuse autopanosiftc ];
|
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
postInstall = ''
|
2012-02-10 11:13:39 +01:00
|
|
|
mkdir -p "$out/nix-support"
|
|
|
|
echo $propagatedUserEnvPackages > $out/nix-support/propagated-user-env-packages
|
2009-05-24 12:57:41 +02:00
|
|
|
'';
|
2009-04-05 23:41:38 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://hugin.sourceforge.net/;
|
2009-04-06 11:19:51 +02:00
|
|
|
description = "Toolkit for stitching photographs and assembling panoramas, together with an easy to use graphical front end";
|
2009-04-06 10:26:13 +02:00
|
|
|
license = "GPLv2+";
|
2009-11-29 20:22:22 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-04-05 23:41:38 +02:00
|
|
|
};
|
|
|
|
}
|