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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

102 lines
1.9 KiB
Nix
Raw Normal View History

2020-11-25 14:23:43 +00:00
{ automake
, cmake
, exiv2
, expat
, fetchFromGitHub
2022-08-01 10:33:25 +00:00
, fetchpatch
2020-11-25 14:23:43 +00:00
, fftw
, fftwFloat
, gettext
, glib
, gobject-introspection
, gtkmm2
, lcms2
, lensfun
, libexif
, libiptcdata
, libjpeg
, libraw
, libtiff
, libxml2
, ninja
, openexr
, pcre
, pkg-config
2020-11-25 14:23:43 +00:00
, pugixml
2022-08-01 10:33:25 +00:00
, lib
, stdenv
2020-11-25 14:23:43 +00:00
, swig
, vips
2022-08-01 10:33:25 +00:00
, gtk-mac-integration-gtk2
2020-11-25 14:23:43 +00:00
}:
2017-11-03 21:22:17 +00:00
2020-11-25 14:23:43 +00:00
stdenv.mkDerivation rec {
pname = "photoflow";
version = "2020-08-28";
2017-11-03 21:22:17 +00:00
src = fetchFromGitHub {
owner = "aferrero2707";
2020-11-25 14:23:43 +00:00
repo = pname;
rev = "8472024fb91175791e0eb23c434c5b58ecd250eb";
sha256 = "1bq4733hbh15nwpixpyhqfn3bwkg38amdj2xc0my0pii8l9ln793";
2017-11-03 21:22:17 +00:00
};
2022-08-01 10:33:25 +00:00
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
];
2020-11-25 14:23:43 +00:00
2017-11-03 21:22:17 +00:00
nativeBuildInputs = [
2020-11-25 14:23:43 +00:00
automake
cmake
2017-11-03 21:22:17 +00:00
gettext
glib
2020-11-25 14:23:43 +00:00
gobject-introspection
2017-11-03 21:22:17 +00:00
libxml2
2020-11-25 14:23:43 +00:00
ninja
pkg-config
2017-11-03 21:22:17 +00:00
swig
];
buildInputs = [
exiv2
2020-11-25 14:23:43 +00:00
expat
fftw
fftwFloat
2022-08-01 10:33:25 +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
2017-11-03 21:22:17 +00:00
lcms2
2020-11-25 14:23:43 +00:00
lensfun
2017-11-03 21:22:17 +00:00
libexif
2020-11-25 14:23:43 +00:00
libiptcdata
libjpeg
libraw
libtiff
openexr
2017-11-03 21:22:17 +00:00
pcre
pugixml
2020-11-25 14:23:43 +00:00
vips
2022-08-01 10:33:25 +00:00
] ++ lib.optionals stdenv.isDarwin [
gtk-mac-integration-gtk2
2017-11-03 21:22:17 +00:00
];
cmakeFlags = [
"-DBUNDLED_EXIV2=OFF"
"-DBUNDLED_LENSFUN=OFF"
"-DBUNDLED_GEXIV2=OFF"
];
meta = with lib; {
2017-11-03 21:22:17 +00:00
description = "A fully non-destructive photo retouching program providing a complete RAW image editing workflow";
homepage = "https://aferrero2707.github.io/PhotoFlow/";
2017-11-03 21:22:17 +00:00
license = licenses.gpl3Plus;
2022-08-01 10:33:25 +00:00
maintainers = with maintainers; [ MtP wegank ];
platforms = platforms.unix;
2017-11-03 21:22:17 +00:00
};
}