openobex: cleanup, add license

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