about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2017-03-04 19:18:04 +0100
committerMichael Raskin <7c6f434c@mail.ru>2017-04-30 21:12:36 +0200
commitf8b5b85df6885c91f78ff82fad11c6a0f01c2181 (patch)
treec2fce94c593ac175dba7a776046d2ee1e88f90a1 /pkgs/applications/graphics
parentc282de710381c803f09da98a18683ab775902436 (diff)
downloadnixlib-f8b5b85df6885c91f78ff82fad11c6a0f01c2181.tar
nixlib-f8b5b85df6885c91f78ff82fad11c6a0f01c2181.tar.gz
nixlib-f8b5b85df6885c91f78ff82fad11c6a0f01c2181.tar.bz2
nixlib-f8b5b85df6885c91f78ff82fad11c6a0f01c2181.tar.lz
nixlib-f8b5b85df6885c91f78ff82fad11c6a0f01c2181.tar.xz
nixlib-f8b5b85df6885c91f78ff82fad11c6a0f01c2181.tar.zst
nixlib-f8b5b85df6885c91f78ff82fad11c6a0f01c2181.zip
displaycal: init at 3.2.4.0
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/displaycal/default.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/displaycal/default.nix b/pkgs/applications/graphics/displaycal/default.nix
new file mode 100644
index 000000000000..80d2b2903678
--- /dev/null
+++ b/pkgs/applications/graphics/displaycal/default.nix
@@ -0,0 +1,57 @@
+{buildPythonPackage, stdenv, fetchurl, pkgconfig
+ , libXext, libXxf86vm, libX11, libXrandr, libXinerama
+ , argyllcms, wxPython, numpy
+ }:
+buildPythonPackage {
+  name = "displaycal-3.2.4.0";
+
+  enableParallelBuilding = true;
+
+  src = fetchurl {
+    url = mirror://sourceforge/project/dispcalgui/release/3.2.4.0/DisplayCAL-3.2.4.0.tar.gz;
+    sha256 = "0swkhv338d1kmfxyf30zzdjs5xpbha40pg2zysiipcbasc0xhlb8";
+  };
+
+  propagatedBuildInputs = [
+    libXext
+    libXxf86vm
+    libX11
+    libXrandr
+    libXinerama
+    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";
+    homepage = http://displaycal.net/;
+    license = stdenv.lib.licenses.gpl3;
+    maintainers = [stdenv.lib.maintainers.marcweber];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}