2013-05-22 17:25:30 +01:00
|
|
|
{ stdenv, fetchhg, cmake, qt4, fftw, graphicsmagick_q16,
|
|
|
|
lcms2, lensfun, pkgconfig, libjpeg, exiv2, liblqr1 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-25 16:49:00 +00:00
|
|
|
name = "photivo-2014-01-25";
|
2013-05-22 17:25:30 +01:00
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "http://code.google.com/p/photivo/";
|
2014-06-28 19:33:28 +01:00
|
|
|
rev = "d687864489da";
|
2014-01-25 16:49:00 +00:00
|
|
|
sha256 = "0f6y18k7db2ci6xn664zcwm1g1k04sdv7gg1yd5jk41bndjb7z8h";
|
2013-05-22 17:25:30 +01:00
|
|
|
};
|
|
|
|
|
2016-06-19 09:18:30 +01:00
|
|
|
postPatch = '' # kinda icky
|
2013-07-22 13:06:32 +01:00
|
|
|
sed -e '/("@INSTALL@")/d' \
|
|
|
|
-e s,@INSTALL@,$out/share/photivo, \
|
|
|
|
-i Sources/ptSettings.cpp
|
2016-06-19 09:18:30 +01:00
|
|
|
sed '1i#include <math.h>' -i Sources/filters/ptFilter_StdCurve.cpp
|
2013-07-22 13:06:32 +01:00
|
|
|
'';
|
2014-01-28 16:24:00 +00:00
|
|
|
|
2016-06-19 09:18:30 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ qt4 fftw graphicsmagick_q16 lcms2 lensfun libjpeg exiv2 liblqr1 ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-01-28 16:24:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
2014-09-13 12:51:39 +01:00
|
|
|
maintainers = [ maintainers.mornfall ];
|
2014-01-28 16:24:00 +00:00
|
|
|
};
|
2013-05-22 17:25:30 +01:00
|
|
|
}
|