summary refs log blame commit diff
path: root/pkgs/tools/misc/colord/default.nix
blob: 525c3ba9f2c49ec745aa09909f3cd13a41e87eed (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                            
                                                                                
                                                                      
 

                         
 


                                                                               
    


                                
                                                                                                                                           
 

                                                                                                            

                  
                              








                                                                                                                                                         
 
{ stdenv, fetchurl, fetchgit, bashCompletion
, glib, polkit, pkgconfig, intltool, gusb, libusb1, lcms2, sqlite, systemd, dbus
, automake, autoconf, libtool, gtk_doc, which, gobjectIntrospection }:

stdenv.mkDerivation rec {
  name = "colord-1.1.5";

  src = fetchurl {
    url = "http://www.freedesktop.org/software/colord/releases/${name}.tar.xz";
    sha256 = "1638pfv16bdrdxxprk6dp8d706571a8i3nlfv3m0ldx26xpy8z5j";
  };

  enableParallelBuilding = true;

  configureFlags = "--with-udevrulesdir=$out/lib/udev/rules.d --with-systemdsystemunitdir=$out/lib/udev/rules.d --disable-bash-completion";

  buildInputs = [ glib polkit pkgconfig intltool gusb libusb1 lcms2 sqlite systemd dbus gobjectIntrospection
                  bashCompletion ];

  postInstall = ''
    rm -fr $out/var/lib/colord
  '';

  meta = {
    description = "system service that makes it easy to manage, install and generate color profiles to accurately color manage input and output devices";
    homepage = http://www.freedesktop.org/software/colord/intro.html;
    license = stdenv.lib.licenses.lgpl2Plus;
    maintainers = [stdenv.lib.maintainers.marcweber];
    platforms = stdenv.lib.platforms.linux;
  };
}