2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, bluez, libusb-compat-0_1, cmake }:
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2009-08-05 23:24:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 19:47:47 +00:00
|
|
|
pname = "openobex";
|
|
|
|
version = "1.7.2";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2009-08-05 23:24:27 +00:00
|
|
|
src = fetchurl {
|
2021-08-12 19:47:47 +00:00
|
|
|
url = "mirror://sourceforge/openobex/openobex-${version}-Source.tar.gz";
|
2018-02-27 16:56:56 +00:00
|
|
|
sha256 = "1z6l7pbwgs5pjx3861cyd3r6vq5av984bdp4r3hgrw2jxam6120m";
|
2009-08-05 23:24:27 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-04-28 03:29:39 +00:00
|
|
|
buildInputs = [ bluez libusb-compat-0_1 ];
|
2009-08-05 23:24:27 +00:00
|
|
|
|
2016-02-12 19:44:55 +00:00
|
|
|
configureFlags = [ "--enable-apps" ];
|
2009-08-05 23:24:27 +00:00
|
|
|
|
2013-08-27 19:16:03 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt
|
2014-11-15 21:32:36 +00:00
|
|
|
sed -i "/if ( PKGCONFIG_UDEV_FOUND )/,/endif ( PKGCONFIG_UDEV_FOUND )/d" udev/CMakeLists.txt
|
2013-08-27 19:16:03 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://dev.zuckschwerdt.org/openobex/";
|
2009-08-05 23:24:27 +00:00
|
|
|
description = "An open source implementation of the Object Exchange (OBEX) protocol";
|
2016-02-12 19:44:55 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2Plus;
|
2009-08-05 23:24:27 +00:00
|
|
|
};
|
|
|
|
}
|