1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/tools/bluetooth/openobex/default.nix
Ryan Mulligan c4f8c10d94 openobex: 1.7.1 -> 1.7.2
Semi-automatic update. These checks were performed:

- built on NixOS
- found 1.7.2 with grep in /nix/store/g5fyaqyx13bzb0pwn2jm4ykv1qgwxx0k-openobex-1.7.2
- found 1.7.2 in filename of file in /nix/store/g5fyaqyx13bzb0pwn2jm4ykv1qgwxx0k-openobex-1.7.2
2018-02-28 11:32:38 +01:00

28 lines
824 B
Nix

{ stdenv, fetchurl, pkgconfig, bluez, libusb, cmake }:
stdenv.mkDerivation rec {
name = "openobex-1.7.2";
src = fetchurl {
url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
sha256 = "1z6l7pbwgs5pjx3861cyd3r6vq5av984bdp4r3hgrw2jxam6120m";
};
nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ bluez libusb ];
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 stdenv.lib; {
homepage = http://dev.zuckschwerdt.org/openobex/;
description = "An open source implementation of the Object Exchange (OBEX) protocol";
platforms = platforms.linux;
license = licenses.lgpl2Plus;
};
}