nixpkgs-suyu/pkgs/applications/graphics/hugin/default.nix

48 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, cmake, fetchurl, gnumake, makeWrapper, pkgconfig
, autopanosiftc, boost, cairo, enblend-enfuse, exiv2, fftw, flann, gettext
, glew, ilmbase, lcms2, lensfun, libjpeg, libpng, libtiff, libX11, libXi
, libXmu, mesa, openexr, panotools, perlPackages, sqlite, vigra, wxGTK, zlib
2014-07-12 13:18:22 +02:00
}:
stdenv.mkDerivation rec {
2016-09-22 03:26:34 +02:00
name = "hugin-2016.2.0";
src = fetchurl {
url = "mirror://sourceforge/hugin/${name}.tar.bz2";
2016-09-22 03:26:34 +02:00
sha256 = "058zd63vx29yrx2pphbbll7kzcxkai22q26lpw13rn4lvp41pasl";
};
buildInputs = [
boost cairo exiv2 fftw flann gettext glew ilmbase lcms2 lensfun libjpeg
libpng libtiff libX11 libXi libXmu mesa openexr panotools sqlite vigra
wxGTK zlib
];
nativeBuildInputs = [ cmake makeWrapper pkgconfig ];
2014-07-12 13:18:22 +02:00
# disable installation of the python scripting interface
cmakeFlags = [ "-DBUILD_HSI:BOOl=OFF" ];
enableParallelBuilding = true;
2016-09-01 18:11:21 +02:00
NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
postInstall = ''
2015-06-18 21:46:36 +02:00
for p in $out/bin/*; do
wrapProgram "$p" \
--suffix PATH : ${autopanosiftc}/bin \
--suffix PATH : ${enblend-enfuse}/bin \
--suffix PATH : ${gnumake}/bin \
--suffix PATH : ${perlPackages.ImageExifTool}/bin
done
'';
meta = with stdenv.lib; {
homepage = http://hugin.sourceforge.net/;
description = "Toolkit for stitching photographs and assembling panoramas, together with an easy to use graphical front end";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ viric hrdinka ];
platforms = platforms.linux;
};
}