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

29 lines
870 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, bluez, libusb-compat-0_1, cmake }:
stdenv.mkDerivation rec {
2021-08-12 21:47:47 +02:00
pname = "openobex";
version = "1.7.2";
src = fetchurl {
2021-08-12 21:47:47 +02:00
url = "mirror://sourceforge/openobex/openobex-${version}-Source.tar.gz";
sha256 = "1z6l7pbwgs5pjx3861cyd3r6vq5av984bdp4r3hgrw2jxam6120m";
};
nativeBuildInputs = [ pkg-config cmake ];
2020-04-28 05:29:39 +02:00
buildInputs = [ bluez libusb-compat-0_1 ];
2016-02-12 20:44:55 +01:00
configureFlags = [ "--enable-apps" ];
patchPhase = ''
sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt
2014-11-15 22:32:36 +01:00
sed -i "/if ( PKGCONFIG_UDEV_FOUND )/,/endif ( PKGCONFIG_UDEV_FOUND )/d" udev/CMakeLists.txt
'';
meta = with lib; {
homepage = "http://dev.zuckschwerdt.org/openobex/";
description = "An open source implementation of the Object Exchange (OBEX) protocol";
2016-02-12 20:44:55 +01:00
platforms = platforms.linux;
license = licenses.lgpl2Plus;
};
}