nixpkgs/pkgs/tools/bluetooth/openobex/default.nix

28 lines
824 B
Nix
Raw Normal View History

2016-02-12 19:44:55 +00:00
{ stdenv, fetchurl, pkgconfig, bluez, libusb, cmake }:
stdenv.mkDerivation rec {
name = "openobex-1.7.1";
src = fetchurl {
url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
sha256 = "0mza0mrdrbcw4yix6qvl31kqy7bdkgxjycr0yx7yl089v5jlc9iv";
};
2016-02-12 19:44:55 +00:00
nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ bluez libusb ];
2016-02-12 19:44:55 +00:00
configureFlags = [ "--enable-apps" ];
patchPhase = ''
sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt
2014-11-15 21:32:36 +00:00
sed -i "/if ( PKGCONFIG_UDEV_FOUND )/,/endif ( PKGCONFIG_UDEV_FOUND )/d" udev/CMakeLists.txt
'';
2016-02-12 19:44:55 +00:00
meta = with stdenv.lib; {
homepage = http://dev.zuckschwerdt.org/openobex/;
description = "An open source implementation of the Object Exchange (OBEX) protocol";
2016-02-12 19:44:55 +00:00
platforms = platforms.linux;
license = licenses.lgpl2Plus;
};
}