Skip to content

Commit

Permalink
bluez: remove unneeded dependencies and fix test bins
Browse files Browse the repository at this point in the history
(cherry picked from commit 50fb629)
  • Loading branch information
globin committed Sep 27, 2017
1 parent 394aa5a commit ef52776
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions pkgs/os-specific/linux/bluez/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib,
pythonPackages, readline, libsndfile, udev, libical,
pythonPackages, readline, udev, libical,
systemd, enableWiimote ? false }:

assert stdenv.isLinux;
Expand All @@ -15,13 +15,10 @@ stdenv.mkDerivation rec {
pythonPath = with pythonPackages;
[ dbus pygobject2 pygobject3 recursivePthLoader ];

buildInputs =
[ pkgconfig dbus glib alsaLib pythonPackages.python pythonPackages.wrapPython
readline libsndfile udev libical
# Disables GStreamer; not clear what it gains us other than a
# zillion extra dependencies.
# gstreamer gst-plugins-base
];
buildInputs = [
pkgconfig dbus glib alsaLib pythonPackages.python pythonPackages.wrapPython
readline udev libical
];

outputs = [ "out" "dev" "test" ];

Expand Down Expand Up @@ -51,10 +48,8 @@ stdenv.mkDerivation rec {

makeFlags = "rulesdir=$(out)/lib/udev/rules.d";

# FIXME: Move these into a separate package to prevent Bluez from
# depending on Python etc.
postInstall = ''
mkdir -p $test/test
mkdir -p $test/{bin,test}
cp -a test $test
pushd $test/test
for a in \
Expand All @@ -65,7 +60,7 @@ stdenv.mkDerivation rec {
list-devices \
monitor-bluetooth \
; do
ln -s ../test/$a $out/bin/bluez-$a
ln -s ../test/$a $test/bin/bluez-$a
done
popd
wrapPythonProgramsIn $test/test "$test/test $pythonPath"
Expand Down

0 comments on commit ef52776

Please sign in to comment.