tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rawtherapee: 4.0 -> 4.2
Matthias Herrmann
9 years ago
392448b5
125ffff0
+67
-10
2 changed files
expand all
collapse all
unified
split
pkgs
applications
graphics
rawtherapee
default.nix
sigc++_fix.patch
+15
-10
pkgs/applications/graphics/rawtherapee/default.nix
···
1
1
-
{ stdenv, fetchurl, pkgconfig, gtk, cmake, pixman, libpthreadstubs, gtkmm, libXau
2
2
-
, libXdmcp, lcms2, libiptcdata, libcanberra, fftw, expat
1
1
+
{ stdenv, fetchFromGitHub, pkgconfig, gtk, cmake, pixman, libpthreadstubs, gtkmm, libXau
2
2
+
, libXdmcp, lcms2, libiptcdata, libcanberra, fftw, expat, pcre, libsigcxx
3
3
, mercurial # Not really needed for anything, but it fails if it does not find 'hg'
4
4
}:
5
5
6
6
stdenv.mkDerivation rec {
7
7
-
name = "rawtherapee-4.0.10";
7
7
+
name = "rawtherapee-4.2";
8
8
9
9
-
src = fetchurl {
10
10
-
url = http://rawtherapee.googlecode.com/files/rawtherapee-4.0.10.tar.xz;
11
11
-
sha256 = "1ibsdm2kqpw796rcdihnnp67vx0wm1d1bnlzq269r9p01w5s102g";
9
9
+
src = fetchFromGitHub {
10
10
+
owner = "Beep6581";
11
11
+
repo = "RawTherapee";
12
12
+
rev = "4.2";
13
13
+
sha256 = "1v4px239vlmk9l8wbzlvlyni4ns12icxmgfz21m86jkd10pj5dgr";
12
14
};
13
15
14
16
buildInputs = [ pkgconfig gtk cmake pixman libpthreadstubs gtkmm libXau libXdmcp
15
15
-
lcms2 libiptcdata mercurial libcanberra fftw expat ];
17
17
+
lcms2 libiptcdata mercurial libcanberra fftw expat pcre libsigcxx ];
16
18
17
17
-
# Disable the use of the RAWZOR propietary libraries
18
18
-
cmakeFlags = [ "-DWITH_RAWZOR=OFF" ];
19
19
+
patchPhase = ''
20
20
+
patch -p1 < ${./sigc++_fix.patch}
21
21
+
'';
22
22
+
23
23
+
NIX_CFLAGS_COMPILE = "-std=gnu++11 -Wno-deprecated-declarations -Wno-unused-result";
19
24
20
25
enableParallelBuilding = true;
21
26
···
23
28
description = "RAW converter and digital photo processing software";
24
29
homepage = http://www.rawtherapee.com/;
25
30
license = stdenv.lib.licenses.gpl3Plus;
26
26
-
maintainers = with stdenv.lib.maintainers; [viric jcumming];
31
31
+
maintainers = with stdenv.lib.maintainers; [viric jcumming mahe];
27
32
platforms = with stdenv.lib.platforms; linux;
28
33
};
29
34
}
+52
pkgs/applications/graphics/rawtherapee/sigc++_fix.patch
···
1
1
+
diff --git a/rtgui/adjuster.cc b/rtgui/adjuster.cc
2
2
+
index f73dd8a..a7a069c 100644
3
3
+
--- a/rtgui/adjuster.cc
4
4
+
+++ b/rtgui/adjuster.cc
5
5
+
@@ -17,7 +17,7 @@
6
6
+
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
7
7
+
*/
8
8
+
#include "adjuster.h"
9
9
+
-#include <sigc++/class_slot.h>
10
10
+
+#include <sigc++/slot.h>
11
11
+
#include <cmath>
12
12
+
#include "multilangmgr.h"
13
13
+
#include "../rtengine/rtengine.h"
14
14
+
diff --git a/rtgui/preferences.cc b/rtgui/preferences.cc
15
15
+
index 134c0d7..8ce1808 100644
16
16
+
--- a/rtgui/preferences.cc
17
17
+
+++ b/rtgui/preferences.cc
18
18
+
@@ -16,7 +16,7 @@
19
19
+
* You should have received a copy of the GNU General Public License
20
20
+
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
21
21
+
*/
22
22
+
-#include <sigc++/class_slot.h>
23
23
+
+#include <sigc++/slot.h>
24
24
+
#include "preferences.h"
25
25
+
#include "multilangmgr.h"
26
26
+
#include "splash.h"
27
27
+
diff --git a/rtgui/thresholdadjuster.cc b/rtgui/thresholdadjuster.cc
28
28
+
index 6b41329..19cde25 100644
29
29
+
--- a/rtgui/thresholdadjuster.cc
30
30
+
+++ b/rtgui/thresholdadjuster.cc
31
31
+
@@ -17,7 +17,7 @@
32
32
+
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
33
33
+
*/
34
34
+
#include "thresholdadjuster.h"
35
35
+
-#include <sigc++/class_slot.h>
36
36
+
+#include <sigc++/slot.h>
37
37
+
#include <cmath>
38
38
+
#include "multilangmgr.h"
39
39
+
#include "../rtengine/rtengine.h"
40
40
+
diff --git a/rtgui/tonecurve.cc b/rtgui/tonecurve.cc
41
41
+
index 2e439e1..5f14200 100644
42
42
+
--- a/rtgui/tonecurve.cc
43
43
+
+++ b/rtgui/tonecurve.cc
44
44
+
@@ -18,7 +18,7 @@
45
45
+
*/
46
46
+
#include "tonecurve.h"
47
47
+
#include "adjuster.h"
48
48
+
-#include <sigc++/class_slot.h>
49
49
+
+#include <sigc++/slot.h>
50
50
+
#include <iomanip>
51
51
+
#include "ppversion.h"
52
52
+
#include "edit.h"