2016-02-12 19:45:14 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openobex, bluez, cmake }:
|
2009-08-06 00:24:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-08-27 20:36:36 +01:00
|
|
|
name = "obexftp-0.24";
|
2009-08-06 00:24:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-08-27 20:36:36 +01:00
|
|
|
url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
|
|
|
|
sha256 = "0szy7p3y75bd5h4af0j5kf0fpzx2w560fpy4kg3603mz11b9c1xr";
|
2009-08-06 00:24:27 +01:00
|
|
|
};
|
|
|
|
|
2016-02-12 19:45:14 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
2009-08-06 00:24:27 +01:00
|
|
|
|
2016-02-12 19:45:14 +00:00
|
|
|
buildInputs = [ bluez ];
|
2009-08-06 00:24:27 +01:00
|
|
|
|
2016-02-12 19:45:14 +00:00
|
|
|
propagatedBuildInputs = [ openobex ];
|
|
|
|
|
|
|
|
# There's no such thing like "bluetooth" library; possibly they meant "bluez" but it links correctly without this.
|
|
|
|
postFixup = ''
|
|
|
|
sed -i 's,^Requires: bluetooth,Requires:,' $out/lib/pkgconfig/obexftp.pc
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-08-06 00:24:27 +01:00
|
|
|
homepage = http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp;
|
|
|
|
description = "A library and tool to access files on OBEX-based devices (such as Bluetooth phones)";
|
2016-02-12 19:45:14 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2Plus;
|
2009-08-06 00:24:27 +01:00
|
|
|
};
|
|
|
|
}
|