3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/bluetooth/obexftp/default.nix

29 lines
881 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, openobex, bluez, cmake }:
stdenv.mkDerivation rec {
2020-01-07 01:47:07 +00:00
name = "obexftp-0.24.2";
src = fetchurl {
url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
2020-01-07 01:47:07 +00:00
sha256 = "18w9r78z78ri5qc8fjym4nk1jfbrkyr789sq7rxrkshf1a7b83yl";
};
nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ bluez ];
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; {
homepage = http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp;
description = "A library and tool to access files on OBEX-based devices (such as Bluetooth phones)";
platforms = platforms.linux;
license = licenses.lgpl2Plus;
};
}