From 8b4fef8840f59e1017d6a3014defac2eab4000e7 Mon Sep 17 00:00:00 2001 From: Aristid Breitkreuz Date: Tue, 27 Aug 2013 21:16:03 +0200 Subject: [PATCH] openobex-1.7.1 (1.5 could no longer be downloaded from kernel repositories) --- pkgs/tools/bluetooth/openobex/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/bluetooth/openobex/default.nix b/pkgs/tools/bluetooth/openobex/default.nix index 97ed96371c8f..fc4d8611f877 100644 --- a/pkgs/tools/bluetooth/openobex/default.nix +++ b/pkgs/tools/bluetooth/openobex/default.nix @@ -1,17 +1,21 @@ -{stdenv, fetchurl, pkgconfig, bluez, libusb}: +{stdenv, fetchurl, pkgconfig, bluez, libusb, cmake}: stdenv.mkDerivation rec { - name = "openobex-1.5"; + name = "openobex-1.7.1"; src = fetchurl { - url = "mirror://kernel/linux/bluetooth/${name}.tar.gz"; - sha256 = "0rayjci99ahhvs2d16as1qql3vrcizd0nhi8n3n4g6krf1sh80p6"; + url = "mirror://sourceforge/openobex/${name}-Source.tar.gz"; + sha256 = "0mza0mrdrbcw4yix6qvl31kqy7bdkgxjycr0yx7yl089v5jlc9iv"; }; - buildInputs = [pkgconfig bluez libusb]; + buildInputs = [pkgconfig bluez libusb cmake]; configureFlags = "--enable-apps"; + patchPhase = '' + sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt + ''; + meta = { homepage = http://dev.zuckschwerdt.org/openobex/; description = "An open source implementation of the Object Exchange (OBEX) protocol";