Skip to content

Commit

Permalink
photivo: fix build with lensfun >= 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rycee authored and grahamc committed Mar 6, 2017
1 parent 0705346 commit 747b62f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/applications/graphics/photivo/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchhg, cmake, qt4, fftw, graphicsmagick_q16,
{ stdenv, fetchhg, fetchpatch, cmake, qt4, fftw, graphicsmagick_q16,
lcms2, lensfun, pkgconfig, libjpeg, exiv2, liblqr1 }:

stdenv.mkDerivation rec {
Expand All @@ -10,6 +10,16 @@ stdenv.mkDerivation rec {
sha256 = "0f6y18k7db2ci6xn664zcwm1g1k04sdv7gg1yd5jk41bndjb7z8h";
};

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";
})
];

postPatch = '' # kinda icky
sed -e '/("@INSTALL@")/d' \
-e s,@INSTALL@,$out/share/photivo, \
Expand Down

0 comments on commit 747b62f

Please sign in to comment.