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 {
|
2020-01-07 01:47:07 +00:00
|
|
|
name = "obexftp-0.24.2";
|
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";
|
2020-01-07 01:47:07 +00:00
|
|
|
sha256 = "18w9r78z78ri5qc8fjym4nk1jfbrkyr789sq7rxrkshf1a7b83yl";
|
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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp";
|
2009-08-06 00:24:27 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|