2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchhg, fetchpatch, cmake, qt4, fftw, graphicsmagick_q16,
|
2021-01-19 06:50:56 +00:00
|
|
|
lcms2, lensfun, pkg-config, libjpeg, exiv2, liblqr1 }:
|
2013-05-22 16:25:30 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-01-25 16:49:00 +00:00
|
|
|
name = "photivo-2014-01-25";
|
2013-05-22 16:25:30 +00:00
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "http://code.google.com/p/photivo/";
|
2014-06-28 18:33:28 +00:00
|
|
|
rev = "d687864489da";
|
2014-01-25 16:49:00 +00:00
|
|
|
sha256 = "0f6y18k7db2ci6xn664zcwm1g1k04sdv7gg1yd5jk41bndjb7z8h";
|
2013-05-22 16:25:30 +00:00
|
|
|
};
|
|
|
|
|
2017-03-04 19:38:09 +00:00
|
|
|
patches = [
|
|
|
|
# Patch fixing build with lensfun >= 0.3, taken from
|
|
|
|
# https://www.linuxquestions.org/questions/slackware-14/photivo-4175530230/#post5296578
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://www.linuxquestions.org/questions/attachment.php?attachmentid=17287&d=1420577220";
|
|
|
|
name = "lensfun-0.3.patch";
|
|
|
|
sha256 = "0ys45x4r4bjjlx0zpd5d56rgjz7k8gxili4r4k8zx3zfka4a3zwv";
|
|
|
|
})
|
2017-09-03 03:01:27 +00:00
|
|
|
./gcc6.patch
|
2017-03-04 19:38:09 +00:00
|
|
|
];
|
|
|
|
|
2016-06-19 08:18:30 +00:00
|
|
|
postPatch = '' # kinda icky
|
2013-07-22 12:06:32 +00:00
|
|
|
sed -e '/("@INSTALL@")/d' \
|
|
|
|
-e s,@INSTALL@,$out/share/photivo, \
|
|
|
|
-i Sources/ptSettings.cpp
|
2016-06-19 08:18:30 +00:00
|
|
|
sed '1i#include <math.h>' -i Sources/filters/ptFilter_StdCurve.cpp
|
2013-07-22 12:06:32 +00:00
|
|
|
'';
|
2014-01-28 16:24:00 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2016-06-19 08:18:30 +00:00
|
|
|
|
|
|
|
buildInputs = [ qt4 fftw graphicsmagick_q16 lcms2 lensfun libjpeg exiv2 liblqr1 ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-22 21:55:25 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2019-06-27 06:00:38 +00:00
|
|
|
broken = true; # exiv2 0.27.1 FTBFS
|
2014-01-28 16:24:00 +00:00
|
|
|
};
|
2013-05-22 16:25:30 +00:00
|
|
|
}
|