2017-03-04 19:18:04 +01:00
|
|
|
{buildPythonPackage, stdenv, fetchurl, pkgconfig
|
2018-03-22 21:08:39 +01:00
|
|
|
, libXext, libXxf86vm, libX11, libXrandr, libXinerama, libXScrnSaver
|
2017-03-04 19:18:04 +01:00
|
|
|
, argyllcms, wxPython, numpy
|
|
|
|
}:
|
|
|
|
buildPythonPackage {
|
2018-06-23 15:27:58 +02:00
|
|
|
pname = "displaycal";
|
|
|
|
version = "3.5.0.0";
|
2017-03-04 19:18:04 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-22 21:08:39 +01:00
|
|
|
url = mirror://sourceforge/project/dispcalgui/release/3.5.0.0/DisplayCAL-3.5.0.0.tar.gz;
|
|
|
|
sha256 = "1j496sv8pbhby5hkkbp07k6bs3f7mb1l3dijmn2iga3kmix0fn5q";
|
2017-03-04 19:18:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libXext
|
|
|
|
libXxf86vm
|
|
|
|
libX11
|
|
|
|
libXrandr
|
|
|
|
libXinerama
|
2018-03-22 21:08:39 +01:00
|
|
|
libXScrnSaver
|
2017-03-04 19:18:04 +01:00
|
|
|
argyllcms
|
|
|
|
wxPython
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
mkdir dist
|
|
|
|
cp {misc,dist}/DisplayCAL.appdata.xml
|
|
|
|
mkdir -p $out
|
|
|
|
ln -s $out/share/DisplayCAL $out/Resources
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no idea why it looks there - symlink .json lang (everything)
|
|
|
|
postInstall = ''
|
|
|
|
for x in $out/share/DisplayCAL/*; do
|
|
|
|
ln -s $x $out/lib/python2.7/site-packages/DisplayCAL
|
|
|
|
done
|
|
|
|
|
|
|
|
for prog in "$out/bin/"*; do
|
|
|
|
wrapProgram "$prog" \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PATH : ${argyllcms}/bin
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Display Calibration and Characterization powered by Argyll CMS";
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://displaycal.net/;
|
2017-03-04 19:18:04 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [stdenv.lib.maintainers.marcweber];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|