2020-04-24 23:36:52 +00:00
|
|
|
{ python2
|
2021-02-05 17:12:51 +00:00
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXext
|
|
|
|
, libXxf86vm
|
|
|
|
, libX11
|
|
|
|
, libXrandr
|
|
|
|
, libXinerama
|
|
|
|
, libXScrnSaver
|
|
|
|
, argyllcms
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2020-06-18 07:06:33 +00:00
|
|
|
inherit (python2.pkgs) buildPythonApplication wxPython numpy dbus-python;
|
|
|
|
in buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "displaycal";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "3.8.9.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-06-18 07:06:33 +00:00
|
|
|
url = "mirror://sourceforge/project/dispcalgui/release/${version}/DisplayCAL-${version}.tar.gz";
|
|
|
|
sha256 = "1sivi4q7sqsrc95qg5gh37bsm2761md4mpl89hflzwk6kyyxyd3w";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libXext
|
|
|
|
libXxf86vm
|
|
|
|
libX11
|
|
|
|
libXrandr
|
|
|
|
libXinerama
|
|
|
|
libXScrnSaver
|
|
|
|
argyllcms
|
|
|
|
wxPython
|
|
|
|
numpy
|
2020-06-18 07:06:33 +00:00
|
|
|
dbus-python
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
mkdir dist
|
2020-06-18 07:06:33 +00:00
|
|
|
cp {misc,dist}/net.displaycal.DisplayCAL.appdata.xml
|
|
|
|
touch dist/copyright
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
|
|
|
homepage = "https://displaycal.net/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [lib.maintainers.marcweber];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|