aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/graphics/photoflow/default.nix
blob: cb8ef65b2e9e617f5e9609a61fefbb19a1bf7c21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{ 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
, stdenv
, swig
, vips
}:

stdenv.mkDerivation rec {
  pname = "photoflow";
  version = "2020-08-28";

  src = fetchFromGitHub {
    owner = "aferrero2707";
    repo = pname;
    rev = "8472024fb91175791e0eb23c434c5b58ecd250eb";
    sha256 = "1bq4733hbh15nwpixpyhqfn3bwkg38amdj2xc0my0pii8l9ln793";
  };

  patches = [ ./CMakeLists.patch ];

  nativeBuildInputs = [
    automake
    cmake
    gettext
    glib
    gobject-introspection
    libxml2
    ninja
    pkgconfig
    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
  ];

  cmakeFlags = [
    "-DBUNDLED_EXIV2=OFF"
    "-DBUNDLED_LENSFUN=OFF"
    "-DBUNDLED_GEXIV2=OFF"
  ];

  meta = with stdenv.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 = [ maintainers.MtP ];
    platforms = platforms.linux;
    # sse3 is not supported on aarch64
    badPlatforms = [ "aarch64-linux" ];
  };
}