1{ stdenv, fetchurl, scons, qt3, lcms1, libtiff, vigra }:
2
3/* how to calibrate your monitor:
4 Eg see https://wiki.archlinux.org/index.php/ICC_Profiles#Loading_ICC_Profiles
5*/
6stdenv.mkDerivation {
7 name = "lprof-1.11.4.1";
8 buildInputs = [ scons qt3 lcms1 libtiff vigra ];
9
10 hardeningDisable = [ "format" ];
11
12 preConfigure = ''
13 export QTDIR=${qt3}
14 export qt_directory=${qt3}
15 '';
16
17 src = fetchurl {
18 url = mirror://sourceforge/lprof/lprof/lprof-1.11.4/lprof-1.11.4.1.tar.gz;
19 sha256 = "0q8x24fm5yyvm151xrl3l03p7hvvciqnkbviprfnvlr0lyg9wsrn";
20 };
21
22 buildPhase = ''
23 mkdir -p $out
24 export CXX=g++
25
26 scons PREFIX=$out SYSLIBS=1 install
27 '';
28
29 installPhase = ":";
30
31 patches = [ ./lcms-1.17.patch ./keep-environment.patch ];
32
33 meta = {
34 description = "Little CMS ICC profile construction set";
35 homepage = https://sourceforge.net/projects/lprof;
36 license = stdenv.lib.licenses.gpl2;
37 platforms = stdenv.lib.platforms.linux;
38 };
39}