1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

colord, gusb: package.

Part of #517.
This commit is contained in:
Marc Weber 2013-05-10 19:17:36 +02:00 committed by Evgeny Egorochkin
parent 953eecb0fc
commit 513dad6527
3 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{stdenv, fetchurl, fetchgit
, automake, autoconf, libtool, which, gtkdoc, gettext, pkgconfig, gobjectIntrospection, libxslt
, glib, systemd, libusb1
}:
stdenv.mkDerivation {
name = "gusb-git";
enableParallelBuilding = true;
src = fetchgit {
url = git://gitorious.org/gusb/gusb.git;
rev = "53226a15a627b20fde38303c2141a17985d741ae";
sha256 = "01daf09f663e27bdd92532e3e2a3e87de895e9cc1f150d4e0fc75b0dc489fccf";
};
preConfigure = "./autogen.sh";
buildInputs = [
pkgconfig autoconf automake libtool which gtkdoc gettext gobjectIntrospection libxslt
systemd libusb1
glib
];
meta = {
description = "GLib libusb wrapper";
homepage = http://gitorious.org/gusb;
license = stdenv.lib.licenses.lgpl21;
maintainers = [stdenv.lib.maintainers.marcweber];
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -0,0 +1,57 @@
{ stdenv, fetchurl, fetchgit
, glib, polkit, pkgconfig, intltool, gusb, libusb1, lcms2, sqlite, systemd, dbus
, automake, autoconf, libtool, gtk_doc, which, gobjectIntrospection
, version ? "git"
}:
# colord wants to write to the etc/colord.conf and var/run/colord/mapping.db
# thus they get symlinked to /etc and /var
stdenv.mkDerivation (stdenv.lib.mergeAttrsByVersion "colord" version {
"0.1.33" = {
name = "colord-0.1.33";
src = fetchurl {
url = http://www.freedesktop.org/software/colord/releases/colord-0.1.32.tar.xz;
sha256 = "1smbkh4z1c2jjwxg626f12sslv7ff3yzak1zqrc493cl467ll0y7";
};
};
"git" = {
name = "colord-git-11dca";
src = fetchgit {
url = "https://github.com/hughsie/colord.git";
rev = "11dcaba034edff3955ceff53795df82c57c34adc";
sha256 = "1280q7zbfm5wqql872kcxmk5rmwjs7cv7cgz8nx0i9g4ac8j2mrf";
};
preConfigure = ''
./autogen.sh
'';
buildInputs = [ automake autoconf libtool gtk_doc which gobjectIntrospection ];
};
} {
enableParallelBuilding = true;
preConfigure = ''
configureFlags="$configureFlags --with-udevrulesdir=$out/lib/udev/rules.d --with-systemdsystemunitdir=$out/lib/udev/rules.d"
'';
buildInputs = [glib polkit pkgconfig intltool gusb libusb1 lcms2 sqlite systemd dbus];
postInstall = ''
sed -i '/usb_id\|usb-db/d' $out/lib/udev/rules.d/69-cd-sensors.rules
mv $out/etc/colord.conf{,.default}
ln -s /etc/colord.conf $out/etc/colord.conf
rm -fr $out/var/lib/colord
ln -s /var/lib/colord $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;
};
})

View file

@ -633,6 +633,8 @@ let
ciopfs = callPackage ../tools/filesystems/ciopfs { };
colord = callPackage ../tools/misc/colord { };
colordiff = callPackage ../tools/text/colordiff { };
connect = callPackage ../tools/networking/connect { };
@ -4269,6 +4271,10 @@ let
gnonlin = callPackage ../development/libraries/gstreamer/gnonlin {};
gusb = callPackage ../development/libraries/gusb {
inherit (gnome) gtkdoc;
};
qt_gstreamer = callPackage ../development/libraries/gstreamer/qt-gstreamer {};
gnet = callPackage ../development/libraries/gnet { };