1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 10:00:56 +00:00
nixpkgs/pkgs/applications/graphics/hugin/default.nix

50 lines
1.6 KiB
Nix
Raw Normal View History

2015-06-18 20:46:36 +01:00
{ stdenv, cmake, fetchurl, gnumake, pkgconfig, makeWrapper
2014-07-12 12:18:22 +01:00
, boost, gettext, tclap, wxGTK
, freeglut, glew, libX11, libXi, libXmu, mesa, cairo
2015-06-18 20:46:36 +01:00
, autopanosiftc, enblend-enfuse, exiv2, fftw, ilmbase, lensfun, libpng, libtiff
, openexr, panotools, perlPackages, sqlite, vigra
2014-07-12 12:18:22 +01:00
}:
stdenv.mkDerivation rec {
2015-06-18 20:46:36 +01:00
name = "hugin-2015.0.0";
src = fetchurl {
url = "mirror://sourceforge/hugin/${name}.tar.bz2";
2015-06-18 20:46:36 +01:00
sha256 = "1gfblax9rxay8xskz5r8bips4nfh70vkyrb8ksgl6pg91c8krn9c";
};
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";
2014-07-12 12:18:22 +01:00
buildInputs = [ boost gettext tclap wxGTK
freeglut glew libX11 libXi libXmu mesa cairo
2015-06-18 20:46:36 +01:00
exiv2 fftw ilmbase lensfun libtiff libpng openexr panotools
sqlite vigra
perlPackages.ImageExifTool makeWrapper
2014-07-12 12:18:22 +01:00
];
2014-07-12 12:18:22 +01:00
# disable installation of the python scripting interface
cmakeFlags = [ "-DBUILD_HSI:BOOl=OFF" ];
nativeBuildInputs = [ cmake pkgconfig ];
enableParallelBuilding = true;
postInstall = ''
2015-06-18 20:46:36 +01: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 = {
homepage = http://hugin.sourceforge.net/;
description = "Toolkit for stitching photographs and assembling panoramas, together with an easy to use graphical front end";
license = stdenv.lib.licenses.gpl2Plus;
2015-06-18 20:46:36 +01:00
maintainers = with stdenv.lib.maintainers; [ viric hrdinka ];
platforms = with stdenv.lib.platforms; linux;
};
}