diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-05-20 22:21:34 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-05-20 22:21:34 +0000 |
commit | d1a44b3a8c6ae02d2a47285725c624dc064b0d65 (patch) | |
tree | 5e6312d1f9ff8e36e647a0f47274209c71acb1bb /pkgs/os-specific/linux/bluez | |
parent | 3c99107e8237f1e0a346c27e04a0ee2f18e49f3b (diff) | |
download | nixpkgs-d1a44b3a8c6ae02d2a47285725c624dc064b0d65.tar nixpkgs-d1a44b3a8c6ae02d2a47285725c624dc064b0d65.tar.gz nixpkgs-d1a44b3a8c6ae02d2a47285725c624dc064b0d65.tar.bz2 nixpkgs-d1a44b3a8c6ae02d2a47285725c624dc064b0d65.tar.lz nixpkgs-d1a44b3a8c6ae02d2a47285725c624dc064b0d65.tar.xz nixpkgs-d1a44b3a8c6ae02d2a47285725c624dc064b0d65.tar.zst nixpkgs-d1a44b3a8c6ae02d2a47285725c624dc064b0d65.zip |
Making bluez install some of its test tools. Mainly, the bluez-simple-agent,
that can do a pincode handshake with the user. svn path=/nixpkgs/trunk/; revision=27284
Diffstat (limited to 'pkgs/os-specific/linux/bluez')
-rw-r--r-- | pkgs/os-specific/linux/bluez/default.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/bluez/default.nix b/pkgs/os-specific/linux/bluez/default.nix index 2868a70e8b6..ce73745ade3 100644 --- a/pkgs/os-specific/linux/bluez/default.nix +++ b/pkgs/os-specific/linux/bluez/default.nix @@ -1,6 +1,12 @@ -{ stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib }: +{ stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib, python, makeWrapper +, pythonDBus, pygobject }: assert stdenv.isLinux; + +let + pythonpath = "${pythonDBus}/lib/${python.libPrefix}/site-packages:" + + "${pygobject}/lib/${python.libPrefix}/site-packages"; +in stdenv.mkDerivation rec { name = "bluez-4.69"; @@ -10,13 +16,22 @@ stdenv.mkDerivation rec { sha256 = "1h4fp6l1sflc0l5vg90hzvgldlwv7rqc4cbn2z6axmxv969pmrhh"; }; - buildInputs = [ pkgconfig dbus.libs glib libusb alsaLib ]; + buildInputs = [ pkgconfig dbus.libs glib libusb alsaLib python makeWrapper ]; configureFlags = "--localstatedir=/var"; # Work around `make install' trying to create /var/lib/bluetooth. installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth"; + postInstall = '' + pushd test + for a in simple-agent test-adapter test-device; do + cp $a $out/bin/bluez-$a + wrapProgram $out/bin/bluez-$a --prefix PYTHONPATH : ${pythonpath} + done + popd + ''; + meta = { homepage = http://www.bluez.org/; description = "Bluetooth support for Linux"; |