15 , gobject-introspection
32 stdenv.mkDerivation rec {
36 outputs = [ "out" "dev" "devdoc" "man" "installedTests" ];
39 url = "https://www.freedesktop.org/software/colord/releases/${pname}-${version}.tar.xz";
40 sha256 = "dAdjGie/5dG2cueuQndwAcEF2GC3tzkig8jGMA3ojm8=";
44 # Put installed tests into its own output
45 ./installed-tests-path.patch
49 for file in data/tests/meson.build lib/colord/cd-test-shared.c lib/colord/meson.build; do
50 substituteInPlace $file --subst-var-by installed_tests_dir "$installedTests"
55 "--localstatedir=/var"
56 "-Dinstalled_tests=true"
57 "-Dlibcolordcompat=true"
60 "-Ddaemon=${lib.boolToString enableDaemon}"
61 "-Ddaemon_user=colord"
91 ] ++ lib.optionals enableDaemon [
96 glib-compile-schemas $out/share/glib-2.0/schemas
99 PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
100 PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "${placeholder "out"}/lib/systemd/user";
101 PKG_CONFIG_SYSTEMD_TMPFILESDIR = "${placeholder "out"}/lib/tmpfiles.d";
102 PKG_CONFIG_BASH_COMPLETION_COMPLETIONSDIR = "${placeholder "out"}/share/bash-completion/completions";
103 PKG_CONFIG_UDEV_UDEVDIR = "${placeholder "out"}/lib/udev";
107 installedTests = nixosTests.installed-tests.colord;
112 description = "System service to manage, install and generate color profiles to accurately color manage input and output devices";
113 homepage = "https://www.freedesktop.org/software/colord/";
114 license = licenses.lgpl2Plus;
115 maintainers = [ maintainers.marcweber ] ++ teams.freedesktop.members;
116 platforms = platforms.linux;