1{stdenv, fetchurl, pkgconfig, bluez, libusb, cmake}:
2
3stdenv.mkDerivation rec {
4 name = "openobex-1.7.1";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
8 sha256 = "0mza0mrdrbcw4yix6qvl31kqy7bdkgxjycr0yx7yl089v5jlc9iv";
9 };
10
11 buildInputs = [pkgconfig bluez libusb cmake];
12
13 configureFlags = "--enable-apps";
14
15 patchPhase = ''
16 sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt
17 sed -i "/if ( PKGCONFIG_UDEV_FOUND )/,/endif ( PKGCONFIG_UDEV_FOUND )/d" udev/CMakeLists.txt
18 '';
19
20 meta = {
21 homepage = http://dev.zuckschwerdt.org/openobex/;
22 description = "An open source implementation of the Object Exchange (OBEX) protocol";
23 platforms = stdenv.lib.platforms.linux;
24 };
25}