2021-01-17 10:17:16 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, openobex, bluez, cmake }:
|
2021-01-19 07:50:56 +01:00
|
|
|
|
2009-08-06 01:24:27 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 21:47:47 +02:00
|
|
|
pname = "obexftp";
|
|
|
|
version = "0.24.2";
|
2021-01-19 07:50:56 +01:00
|
|
|
|
2009-08-06 01:24:27 +02:00
|
|
|
src = fetchurl {
|
2021-08-12 21:47:47 +02:00
|
|
|
url = "mirror://sourceforge/openobex/obexftp-${version}-Source.tar.gz";
|
2020-01-07 02:47:07 +01:00
|
|
|
sha256 = "18w9r78z78ri5qc8fjym4nk1jfbrkyr789sq7rxrkshf1a7b83yl";
|
2009-08-06 01:24:27 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 10:17:16 +01:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2009-08-06 01:24:27 +02:00
|
|
|
|
2016-02-12 20:45:14 +01:00
|
|
|
buildInputs = [ bluez ];
|
2009-08-06 01:24:27 +02:00
|
|
|
|
2016-02-12 20:45:14 +01: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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp";
|
2009-08-06 01:24:27 +02:00
|
|
|
description = "A library and tool to access files on OBEX-based devices (such as Bluetooth phones)";
|
2016-02-12 20:45:14 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2Plus;
|
2009-08-06 01:24:27 +02:00
|
|
|
};
|
|
|
|
}
|