mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 11:32:03 +00:00
97c484a10f
They were mostly missing <cmath> or <math.h>.
31 lines
837 B
Nix
31 lines
837 B
Nix
{ stdenv, fetchhg, cmake, qt4, fftw, graphicsmagick_q16,
|
|
lcms2, lensfun, pkgconfig, libjpeg, exiv2, liblqr1 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "photivo-2014-01-25";
|
|
|
|
src = fetchhg {
|
|
url = "http://code.google.com/p/photivo/";
|
|
rev = "d687864489da";
|
|
sha256 = "0f6y18k7db2ci6xn664zcwm1g1k04sdv7gg1yd5jk41bndjb7z8h";
|
|
};
|
|
|
|
postPatch = '' # kinda icky
|
|
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
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ qt4 fftw graphicsmagick_q16 lcms2 lensfun libjpeg exiv2 liblqr1 ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.mornfall ];
|
|
};
|
|
}
|