nixpkgs/pkgs/applications/graphics/photivo/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

2017-03-04 20:38:09 +01:00
{ stdenv, fetchhg, fetchpatch, cmake, qt4, fftw, graphicsmagick_q16,
lcms2, lensfun, pkgconfig, libjpeg, exiv2, liblqr1 }:
stdenv.mkDerivation rec {
2014-01-25 17:49:00 +01:00
name = "photivo-2014-01-25";
src = fetchhg {
url = "http://code.google.com/p/photivo/";
rev = "d687864489da";
2014-01-25 17:49:00 +01:00
sha256 = "0f6y18k7db2ci6xn664zcwm1g1k04sdv7gg1yd5jk41bndjb7z8h";
};
2017-03-04 20:38:09 +01: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 05:01:27 +02:00
./gcc6.patch
2017-03-04 20:38:09 +01:00
];
postPatch = '' # kinda icky
2013-07-22 14:06:32 +02:00
sed -e '/("@INSTALL@")/d' \
-e s,@INSTALL@,$out/share/photivo, \
-i Sources/ptSettings.cpp
sed '1i#include <math.h>' -i Sources/filters/ptFilter_StdCurve.cpp
2013-07-22 14:06:32 +02:00
'';
2014-01-28 17:24:00 +01:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ qt4 fftw graphicsmagick_q16 lcms2 lensfun libjpeg exiv2 liblqr1 ];
enableParallelBuilding = true;
2014-01-28 17:24:00 +01:00
meta = with stdenv.lib; {
platforms = platforms.linux;
maintainers = [ ];
2014-01-28 17:24:00 +01:00
};
}