2020-11-30 08:33:03 +00:00
|
|
|
{ automake
|
|
|
|
, cmake
|
|
|
|
, exiv2
|
|
|
|
, expat
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fftw
|
|
|
|
, fftwFloat
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtkmm2
|
|
|
|
, lcms2
|
|
|
|
, lensfun
|
|
|
|
, libexif
|
|
|
|
, libiptcdata
|
|
|
|
, libjpeg
|
|
|
|
, libraw
|
|
|
|
, libtiff
|
|
|
|
, libxml2
|
|
|
|
, ninja
|
|
|
|
, openexr
|
|
|
|
, pcre
|
|
|
|
, pkgconfig
|
|
|
|
, pugixml
|
2021-01-15 22:18:51 +00:00
|
|
|
, lib, stdenv
|
2020-11-30 08:33:03 +00:00
|
|
|
, swig
|
|
|
|
, vips
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "photoflow";
|
|
|
|
version = "2020-08-28";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aferrero2707";
|
2020-11-30 08:33:03 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "8472024fb91175791e0eb23c434c5b58ecd250eb";
|
|
|
|
sha256 = "1bq4733hbh15nwpixpyhqfn3bwkg38amdj2xc0my0pii8l9ln793";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
patches = [ ./CMakeLists.patch ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2020-11-30 08:33:03 +00:00
|
|
|
automake
|
|
|
|
cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
glib
|
2020-11-30 08:33:03 +00:00
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
libxml2
|
2020-11-30 08:33:03 +00:00
|
|
|
ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
pkgconfig
|
|
|
|
swig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
exiv2
|
2020-11-30 08:33:03 +00:00
|
|
|
expat
|
|
|
|
fftw
|
|
|
|
fftwFloat
|
2020-04-24 23:36:52 +00:00
|
|
|
gtkmm2 # Could be build with gtk3 but proper UI theme is missing and therefore not very usable with gtk3
|
|
|
|
# See: https://discuss.pixls.us/t/help-needed-for-gtk3-theme/5803
|
|
|
|
lcms2
|
2020-11-30 08:33:03 +00:00
|
|
|
lensfun
|
2020-04-24 23:36:52 +00:00
|
|
|
libexif
|
2020-11-30 08:33:03 +00:00
|
|
|
libiptcdata
|
|
|
|
libjpeg
|
|
|
|
libraw
|
|
|
|
libtiff
|
|
|
|
openexr
|
2020-04-24 23:36:52 +00:00
|
|
|
pcre
|
|
|
|
pugixml
|
2020-11-30 08:33:03 +00:00
|
|
|
vips
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUNDLED_EXIV2=OFF"
|
|
|
|
"-DBUNDLED_LENSFUN=OFF"
|
|
|
|
"-DBUNDLED_GEXIV2=OFF"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A fully non-destructive photo retouching program providing a complete RAW image editing workflow";
|
|
|
|
homepage = "https://aferrero2707.github.io/PhotoFlow/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.MtP ];
|
|
|
|
platforms = platforms.linux;
|
2020-11-30 08:33:03 +00:00
|
|
|
# sse3 is not supported on aarch64
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|