2009-05-24 12:57:41 +02:00
|
|
|
{stdenv, fetchurl, panotools, cmake, wxGTK, libtiff, libpng, openexr, boost,
|
2009-12-12 19:58:40 +01:00
|
|
|
pkgconfig, exiv2, gettext, ilmbase, enblendenfuse, autopanosiftc, mesa, freeglut,
|
|
|
|
glew, libXmu, libXi }:
|
2009-04-05 23:41:38 +02:00
|
|
|
|
2009-12-12 19:58:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hugin-2009.2.0";
|
2009-04-05 23:41:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-12-12 19:58:40 +01:00
|
|
|
url = "mirror://sourceforge/hugin/${name}.tar.gz";
|
|
|
|
sha256 = "1z5hb1sfkpk6d1xnzqh8vy6rs7fhfjs5196pz98hwnx6wfi8w3k2";
|
2009-04-05 23:41:38 +02:00
|
|
|
};
|
|
|
|
|
2009-12-12 19:58:40 +01:00
|
|
|
# patches = [ ./levmar-64-bit-alignment.patch ];
|
2009-07-13 18:24:47 +02:00
|
|
|
|
2009-04-05 23:41:38 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lrt";
|
|
|
|
|
2009-12-10 23:19:52 +01:00
|
|
|
buildInputs = [ cmake panotools wxGTK libtiff libpng openexr boost pkgconfig
|
2009-12-12 19:58:40 +01:00
|
|
|
exiv2 gettext ilmbase mesa freeglut glew libXmu libXi ];
|
2009-12-10 23:19:52 +01:00
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
postInstall = ''
|
2009-07-13 00:00:35 +02:00
|
|
|
ensureDir "$out/nix-support"
|
|
|
|
echo "${enblendenfuse} ${autopanosiftc}" > $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
|
|
|
};
|
|
|
|
}
|