Merge pull request #13823 from abbradar/colord

colord color management daemon

+84 -5
+1
nixos/modules/module-list.nix
··· 440 440 ./services/web-servers/varnish/default.nix 441 441 ./services/web-servers/winstone.nix 442 442 ./services/web-servers/zope2.nix 443 + ./services/x11/colord.nix 443 444 ./services/x11/unclutter.nix 444 445 ./services/x11/desktop-managers/default.nix 445 446 ./services/x11/display-managers/auto.nix
+39
nixos/modules/services/x11/colord.nix
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + with lib; 4 + 5 + let 6 + 7 + cfg = config.services.colord; 8 + 9 + in { 10 + 11 + options = { 12 + 13 + services.colord = { 14 + enable = mkEnableOption "colord, the color management daemon"; 15 + }; 16 + 17 + }; 18 + 19 + config = mkIf cfg.enable { 20 + 21 + services.dbus.packages = [ pkgs.colord ]; 22 + 23 + services.udev.packages = [ pkgs.colord ]; 24 + 25 + environment.systemPackages = [ pkgs.colord ]; 26 + 27 + systemd.services.colord = { 28 + description = "Manage, Install and Generate Color Profiles"; 29 + serviceConfig = { 30 + Type = "dbus"; 31 + BusName = "org.freedesktop.ColorManager"; 32 + ExecStart = "${pkgs.colord}/libexec/colord"; 33 + PrivateTmp = true; 34 + }; 35 + }; 36 + 37 + }; 38 + 39 + }
+2 -2
pkgs/tools/graphics/argyllcms/default.nix
··· 2 2 , libXrender, libXext, libtiff, libjpeg, libpng, libXScrnSaver, writeText 3 3 , libXdmcp, libXau, lib, openssl, zlib }: 4 4 let 5 - version = "1.8.2"; 5 + version = "1.8.3"; 6 6 in 7 7 stdenv.mkDerivation rec { 8 8 name = "argyllcms-${version}"; ··· 11 11 # Kind of flacky URL, it was reaturning 406 and inconsistent binaries for a 12 12 # while on me. It might be good to find a mirror 13 13 url = "http://www.argyllcms.com/Argyll_V${version}_src.zip"; 14 - sha256 = "0hnsciwak5chy4a421l8fz7amxzg8kbmy57a07dn460gdg6r63cy"; 14 + sha256 = "00ggh47qzb3xyl8rnppwxa6j113lr38aiwvsfyxwgs51aqmvq7bd"; 15 15 16 16 # The argyllcms web server doesn't like curl ... 17 17 curlOpts = "--user-agent 'Mozilla/5.0'";
+3
pkgs/tools/misc/colord-kde/default.nix
··· 14 14 15 15 buildInputs = [ colord libX11 libXrandr lcms2 kdelibs ]; 16 16 17 + patches = [ ./fix_check_include_files.patch ]; 18 + patchFlags = [ "-p0" ]; 19 + 17 20 enableParallelBuilding = true; 18 21 19 22 meta = {
+9
pkgs/tools/misc/colord-kde/fix_check_include_files.patch
··· 1 + --- CMakeLists.txt.orig 2013-05-01 05:04:34.000000000 +1000 2 + +++ CMakeLists.txt 2015-12-10 20:43:51.351800988 +1100 3 + @@ -9,6 +9,7 @@ 4 + include(FindPkgConfig) 5 + include(KDE4Defaults) 6 + +include(CheckIncludeFiles) 7 + include(ConfigureChecks.cmake) 8 + 9 + message(STATUS "X randr is required, found: " ${XRANDR_1_3_FOUND})
+4 -3
pkgs/tools/misc/colord/default.nix
··· 1 1 { stdenv, fetchzip, fetchgit, bashCompletion 2 2 , glib, polkit, pkgconfig, intltool, gusb, libusb1, lcms2, sqlite, systemd, dbus 3 3 , automake, autoconf, libtool, gtk_doc, which, gobjectIntrospection, argyllcms 4 - , libgudev }: 4 + , libgudev, sane-backends }: 5 5 6 6 stdenv.mkDerivation rec { 7 7 name = "colord-1.2.12"; ··· 14 14 enableParallelBuilding = true; 15 15 16 16 configureFlags = [ 17 - "--with-udevrulesdir=$out/lib/udev/rules.d" 17 + "--enable-sane" 18 + "--with-udevrulesdir=$(out)/lib/udev/rules.d" 18 19 "--with-systemdsystemunitdir=$(out)/etc/systemd/system" 19 20 "--localstatedir=/var" 20 21 "--disable-bash-completion" ··· 27 28 ''; 28 29 29 30 buildInputs = [ glib polkit pkgconfig intltool gusb libusb1 lcms2 sqlite systemd dbus gobjectIntrospection 30 - bashCompletion argyllcms automake autoconf libgudev ]; 31 + bashCompletion argyllcms automake autoconf libgudev sane-backends ]; 31 32 32 33 postInstall = '' 33 34 mkdir -p $out/etc/bash_completion.d
+24
pkgs/tools/misc/xiccd/default.nix
··· 1 + { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libX11, libXrandr, glib, colord }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "xiccd-${version}"; 5 + version = "0.2.2"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "agalakhov"; 9 + repo = "xiccd"; 10 + rev = "v${version}"; 11 + sha256 = "17p3vngmmjk52r5p8y41s19nwp7w25bgff68ffd50zdlicd33rsy"; 12 + }; 13 + 14 + nativeBuildInputs = [ autoreconfHook pkgconfig ]; 15 + buildInputs = [ libX11 libXrandr glib colord ]; 16 + 17 + meta = with stdenv.lib; { 18 + description = "X color profile daemon"; 19 + homepage = https://github.com/agalakhov/xiccd; 20 + license = licenses.gpl3; 21 + maintainers = with maintainers; [ abbradar ]; 22 + platforms = platforms.linux; 23 + }; 24 + }
+2
pkgs/top-level/all-packages.nix
··· 3888 3888 3889 3889 xmpppy = pythonPackages.xmpppy; 3890 3890 3891 + xiccd = callPackage ../tools/misc/xiccd { }; 3892 + 3891 3893 xorriso = callPackage ../tools/cd-dvd/xorriso { }; 3892 3894 3893 3895 xpf = callPackage ../tools/text/xml/xpf {