2013-08-27 21:16:03 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, bluez, libusb, cmake}:
|
2009-08-06 01:24:27 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-08-27 21:16:03 +02:00
|
|
|
name = "openobex-1.7.1";
|
2009-08-06 01:24:27 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-08-27 21:16:03 +02:00
|
|
|
url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
|
|
|
|
sha256 = "0mza0mrdrbcw4yix6qvl31kqy7bdkgxjycr0yx7yl089v5jlc9iv";
|
2009-08-06 01:24:27 +02:00
|
|
|
};
|
|
|
|
|
2013-08-27 21:16:03 +02:00
|
|
|
buildInputs = [pkgconfig bluez libusb cmake];
|
2009-08-06 01:24:27 +02:00
|
|
|
|
|
|
|
configureFlags = "--enable-apps";
|
|
|
|
|
2013-08-27 21:16:03 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt
|
2014-11-15 22:32:36 +01:00
|
|
|
sed -i "/if ( PKGCONFIG_UDEV_FOUND )/,/endif ( PKGCONFIG_UDEV_FOUND )/d" udev/CMakeLists.txt
|
2013-08-27 21:16:03 +02:00
|
|
|
'';
|
|
|
|
|
2009-08-06 01:24:27 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://dev.zuckschwerdt.org/openobex/;
|
|
|
|
description = "An open source implementation of the Object Exchange (OBEX) protocol";
|
2010-10-21 13:18:30 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-08-06 01:24:27 +02:00
|
|
|
};
|
|
|
|
}
|