Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 libusb-compat-0_1, 7 glib, 8 dbus-glib, 9 bluez, 10 openobex, 11 dbus, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "obex-data-server"; 16 version = "0.4.6"; 17 18 src = fetchurl { 19 url = "http://tadas.dailyda.com/software/obex-data-server-${version}.tar.gz"; 20 sha256 = "0kq940wqs9j8qjnl58d6l3zhx0jaszci356xprx23l6nvdfld6dk"; 21 }; 22 23 strictDeps = true; 24 nativeBuildInputs = [ 25 pkg-config 26 dbus-glib # required for dbus-binding-tool 27 ]; 28 buildInputs = [ 29 libusb-compat-0_1 30 glib 31 dbus-glib 32 bluez 33 openobex 34 dbus 35 ]; 36 37 patches = [ ./obex-data-server-0.4.6-build-fixes-1.patch ]; 38 39 preConfigure = '' 40 addToSearchPath PKG_CONFIG_PATH ${openobex}/lib64/pkgconfig 41 export PKG_CONFIG_PATH="${dbus.dev}/lib/pkgconfig:$PKG_CONFIG_PATH" 42 ''; 43 44 meta = with lib; { 45 homepage = "http://wiki.muiline.com/obex-data-server"; 46 platforms = platforms.linux; 47 license = licenses.gpl2Plus; 48 }; 49}