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 {
|
2011-05-07 00:33:50 +02:00
|
|
|
name = "hugin-2010.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";
|
|
|
|
sha256 = "13n3p4f39mbdydsjqy48csjgvv30lfcwvln5y5dyy95lyrfwcp6l";
|
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
|
|
|
};
|
|
|
|
}
|