about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/graphics/lprof/default.nix
blob: a1c81f16f2bd3e1f0b2d23393e0e718cff0d1a01 (plain) (blame)
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
{ lib, stdenv, fetchurl, sconsPackages, qt3, lcms1, libtiff, vigra }:

/*  how to calibrate your monitor:
    Eg see https://wiki.archlinux.org/index.php/ICC_Profiles#Loading_ICC_Profiles
*/
stdenv.mkDerivation {
  name = "lprof-1.11.4.1";
  nativeBuildInputs = [ sconsPackages.scons_3_0_1 ];
  buildInputs = [ qt3 lcms1 libtiff vigra ];

  hardeningDisable = [ "format" ];

  preConfigure = ''
    export QTDIR=${qt3}
    export qt_directory=${qt3}
  '';

  src = fetchurl {
    url = "mirror://sourceforge/lprof/lprof/lprof-1.11.4/lprof-1.11.4.1.tar.gz";
    sha256 = "0q8x24fm5yyvm151xrl3l03p7hvvciqnkbviprfnvlr0lyg9wsrn";
  };

  sconsFlags = "SYSLIBS=1";
  preBuild = ''
    export CXX=g++
  '';
  prefixKey = "PREFIX=";

  patches = [ ./lcms-1.17.patch  ./keep-environment.patch ];

  meta = {
    description = "Little CMS ICC profile construction set";
    homepage = "https://sourceforge.net/projects/lprof";
    license = lib.licenses.gpl2;
    platforms = lib.platforms.linux;
    broken = true; # Broken since 2020-07-28 (https://hydra.nixos.org/build/135234622)
  };
}