2016-02-12 19:45:14 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openobex, bluez, cmake }:
|
2009-08-05 23:24:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-08-27 19:36:36 +00:00
|
|
|
name = "obexftp-0.24";
|
2009-08-05 23:24:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-08-27 19:36:36 +00:00
|
|
|
url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
|
|
|
|
sha256 = "0szy7p3y75bd5h4af0j5kf0fpzx2w560fpy4kg3603mz11b9c1xr";
|
2009-08-05 23:24:27 +00:00
|
|
|
};
|
|
|
|
|
2016-02-12 19:45:14 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
2009-08-05 23:24:27 +00:00
|
|
|
|
2016-02-12 19:45:14 +00:00
|
|
|
buildInputs = [ bluez ];
|
2009-08-05 23:24:27 +00: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-05 23:24:27 +00: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-05 23:24:27 +00:00
|
|
|
};
|
|
|
|
}
|