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

27 lines
732 B
Nix
Raw Normal View History

{ stdenv, fetchhg, 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";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ qt4 fftw graphicsmagick_q16 lcms2 lensfun libjpeg exiv2 liblqr1 ];
2013-07-22 14:06:32 +02:00
patchPhase = '' # kinda icky
sed -e '/("@INSTALL@")/d' \
-e s,@INSTALL@,$out/share/photivo, \
-i Sources/ptSettings.cpp
'';
2014-01-28 17:24:00 +01:00
meta = with stdenv.lib; {
platforms = platforms.linux;
maintainers = [ maintainers.mornfall ];
2014-01-28 17:24:00 +01:00
};
}