nixpkgs/pkgs/tools/graphics/lprof/default.nix

38 lines
972 B
Nix
Raw Normal View History

2013-03-28 21:06:34 -04:00
{ stdenv, fetchurl, scons, 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 = [ scons ];
buildInputs = [ qt3 lcms1 libtiff vigra ];
2013-03-28 21:06:34 -04:00
2016-08-04 05:12:20 -04:00
hardeningDisable = [ "format" ];
2013-03-28 21:06:34 -04:00
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 = ''
2013-03-28 21:06:34 -04:00
export CXX=g++
'';
prefixKey = "PREFIX=";
2013-03-28 21:06:34 -04:00
2017-08-29 07:57:56 -04:00
patches = [ ./lcms-1.17.patch ./keep-environment.patch ];
2013-03-28 21:06:34 -04:00
meta = {
description = "Little CMS ICC profile construction set";
homepage = https://sourceforge.net/projects/lprof;
2013-03-28 21:06:34 -04:00
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
2013-03-28 21:06:34 -04:00
};
}