From 7a607648dcc1662a51f91296c4342fc5c0a85b6a Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 22 Sep 2010 00:41:31 +0000 Subject: [PATCH] KBluetooth: packaged svn path=/nixpkgs/trunk/; revision=23889 --- pkgs/tools/bluetooth/kbluetooth/default.nix | 30 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/bluetooth/kbluetooth/default.nix diff --git a/pkgs/tools/bluetooth/kbluetooth/default.nix b/pkgs/tools/bluetooth/kbluetooth/default.nix new file mode 100644 index 000000000000..047b4f822ae7 --- /dev/null +++ b/pkgs/tools/bluetooth/kbluetooth/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, kdelibs, cmake, qt4, automoc4, phonon, kdebase_workspace, soprano, gettext +, semanticDesktop ? true }: +with stdenv; +mkDerivation rec { + name = "kbluetooth-${version}"; + version = "0.4.2"; + + src = fetchurl { + url = "http://kde-apps.org/CONTENT/content-files/112110-${name}.tar.bz2"; + sha256 = "0z5clp677g1vgh3dd09ilq1r481y342q2cx5pzjj51y1d9lb5zp5"; + }; + + enableParallelBuilding = true; + + buildInputs = [ cmake qt4 kdelibs automoc4 phonon kdebase_workspace soprano gettext] + ++ lib.optional semanticDesktop soprano; + + patchPhase = '' + substituteInPlace src/CMakeLists.txt --replace "DESTINATION \''${KDE4_BIN_INSTALL_DIR}" "DESTINATION bin" + substituteInPlace src/inputwizard/CMakeLists.txt --replace "DESTINATION \''${KDE4_BIN_INSTALL_DIR}" "DESTINATION bin" + substituteInPlace src/device-manager/CMakeLists.txt --replace "DESTINATION \''${KDE4_BIN_INSTALL_DIR}" "DESTINATION bin" + ''; + + meta = with stdenv.lib; { + description = "Bluetooth manager for KDE"; + license = "GPLv2"; + inherit (kdelibs.meta) platforms; + maintainers = [ maintainers.phreedom ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e9acca29a54e..f49b7a1fb353 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5749,6 +5749,8 @@ let jwm = callPackage ../applications/window-managers/jwm { }; + kbluetooth = newScope pkgs.kde4 ../tools/bluetooth/kbluetooth { }; + kermit = callPackage ../tools/misc/kermit { }; kino = import ../applications/video/kino {