openobex: cleanup, add license

+7 -5
+7 -5
pkgs/tools/bluetooth/openobex/default.nix
··· 1 - {stdenv, fetchurl, pkgconfig, bluez, libusb, cmake}: 2 3 stdenv.mkDerivation rec { 4 name = "openobex-1.7.1"; ··· 8 sha256 = "0mza0mrdrbcw4yix6qvl31kqy7bdkgxjycr0yx7yl089v5jlc9iv"; 9 }; 10 11 - buildInputs = [pkgconfig bluez libusb cmake]; 12 13 - configureFlags = "--enable-apps"; 14 15 patchPhase = '' 16 sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt 17 sed -i "/if ( PKGCONFIG_UDEV_FOUND )/,/endif ( PKGCONFIG_UDEV_FOUND )/d" udev/CMakeLists.txt 18 ''; 19 20 - meta = { 21 homepage = http://dev.zuckschwerdt.org/openobex/; 22 description = "An open source implementation of the Object Exchange (OBEX) protocol"; 23 - platforms = stdenv.lib.platforms.linux; 24 }; 25 }
··· 1 + { stdenv, fetchurl, pkgconfig, bluez, libusb, cmake }: 2 3 stdenv.mkDerivation rec { 4 name = "openobex-1.7.1"; ··· 8 sha256 = "0mza0mrdrbcw4yix6qvl31kqy7bdkgxjycr0yx7yl089v5jlc9iv"; 9 }; 10 11 + nativeBuildInputs = [ pkgconfig cmake ]; 12 + buildInputs = [ bluez libusb ]; 13 14 + configureFlags = [ "--enable-apps" ]; 15 16 patchPhase = '' 17 sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt 18 sed -i "/if ( PKGCONFIG_UDEV_FOUND )/,/endif ( PKGCONFIG_UDEV_FOUND )/d" udev/CMakeLists.txt 19 ''; 20 21 + meta = with stdenv.lib; { 22 homepage = http://dev.zuckschwerdt.org/openobex/; 23 description = "An open source implementation of the Object Exchange (OBEX) protocol"; 24 + platforms = platforms.linux; 25 + license = licenses.lgpl2Plus; 26 }; 27 }