2016-02-12 20:44:55 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, bluez, libusb, cmake }:
|
2009-08-06 01:24:27 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-27 17:56:56 +01:00
|
|
|
name = "openobex-1.7.2";
|
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";
|
2018-02-27 17:56:56 +01:00
|
|
|
sha256 = "1z6l7pbwgs5pjx3861cyd3r6vq5av984bdp4r3hgrw2jxam6120m";
|
2009-08-06 01:24:27 +02:00
|
|
|
};
|
|
|
|
|
2016-02-12 20:44:55 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
buildInputs = [ bluez libusb ];
|
2009-08-06 01:24:27 +02:00
|
|
|
|
2016-02-12 20:44:55 +01:00
|
|
|
configureFlags = [ "--enable-apps" ];
|
2009-08-06 01:24:27 +02:00
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2016-02-12 20:44:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-08-06 01:24:27 +02:00
|
|
|
homepage = http://dev.zuckschwerdt.org/openobex/;
|
|
|
|
description = "An open source implementation of the Object Exchange (OBEX) protocol";
|
2016-02-12 20:44:55 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2Plus;
|
2009-08-06 01:24:27 +02:00
|
|
|
};
|
|
|
|
}
|