forked from mirrors/nixpkgs
102 lines
1.9 KiB
Nix
102 lines
1.9 KiB
Nix
{ automake
|
|
, cmake
|
|
, exiv2
|
|
, expat
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, fftw
|
|
, fftwFloat
|
|
, gettext
|
|
, glib
|
|
, gobject-introspection
|
|
, gtkmm2
|
|
, lcms2
|
|
, lensfun
|
|
, libexif
|
|
, libiptcdata
|
|
, libjpeg
|
|
, libraw
|
|
, libtiff
|
|
, libxml2
|
|
, ninja
|
|
, openexr
|
|
, pcre
|
|
, pkg-config
|
|
, pugixml
|
|
, lib
|
|
, stdenv
|
|
, swig
|
|
, vips
|
|
, gtk-mac-integration-gtk2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "photoflow";
|
|
version = "2020-08-28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aferrero2707";
|
|
repo = pname;
|
|
rev = "8472024fb91175791e0eb23c434c5b58ecd250eb";
|
|
sha256 = "1bq4733hbh15nwpixpyhqfn3bwkg38amdj2xc0my0pii8l9ln793";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "fix-compiler-flags.patch";
|
|
url = "https://sources.debian.org/data/main/p/photoflow/0.2.8%2Bgit20200114-3/debian/patches/ftbfs";
|
|
sha256 = "sha256-DG5yG6M4FsKOykE9Eh5TGd7Z5QURGTTVbO1pIxMAlhc=";
|
|
})
|
|
./CMakeLists.patch
|
|
./fix-build.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
automake
|
|
cmake
|
|
gettext
|
|
glib
|
|
gobject-introspection
|
|
libxml2
|
|
ninja
|
|
pkg-config
|
|
swig
|
|
];
|
|
|
|
buildInputs = [
|
|
exiv2
|
|
expat
|
|
fftw
|
|
fftwFloat
|
|
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
|
|
lensfun
|
|
libexif
|
|
libiptcdata
|
|
libjpeg
|
|
libraw
|
|
libtiff
|
|
openexr
|
|
pcre
|
|
pugixml
|
|
vips
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
gtk-mac-integration-gtk2
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DBUNDLED_EXIV2=OFF"
|
|
"-DBUNDLED_LENSFUN=OFF"
|
|
"-DBUNDLED_GEXIV2=OFF"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = with maintainers; [ MtP wegank ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|