summary refs log tree commit diff
path: root/pkgs/tools/bluetooth/obexftp/default.nix
blob: 12b021d5d3b34457848289c74c537d9e39a8525c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, pkgconfig, openobex, bluez, cmake }:
   
stdenv.mkDerivation rec {
  name = "obexftp-0.24";
   
  src = fetchurl {
    url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
    sha256 = "0szy7p3y75bd5h4af0j5kf0fpzx2w560fpy4kg3603mz11b9c1xr";
  };

  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;
  };
}