depot/third_party/nixpkgs/pkgs/tools/bluetooth/openobex/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

27 lines
842 B
Nix

{ lib, stdenv, fetchurl, pkg-config, bluez, libusb-compat-0_1, cmake }:
stdenv.mkDerivation rec {
name = "openobex-1.7.2";
src = fetchurl {
url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
sha256 = "1z6l7pbwgs5pjx3861cyd3r6vq5av984bdp4r3hgrw2jxam6120m";
};
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [ bluez libusb-compat-0_1 ];
configureFlags = [ "--enable-apps" ];
patchPhase = ''
sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt
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";
platforms = platforms.linux;
license = licenses.lgpl2Plus;
};
}