Skip to content

Commit ef52776

Browse files
committedSep 27, 2017
bluez: remove unneeded dependencies and fix test bins
(cherry picked from commit 50fb629)
1 parent 394aa5a commit ef52776

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed
 

‎pkgs/os-specific/linux/bluez/default.nix

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib,
2-
pythonPackages, readline, libsndfile, udev, libical,
2+
pythonPackages, readline, udev, libical,
33
systemd, enableWiimote ? false }:
44

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

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

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

@@ -51,10 +48,8 @@ stdenv.mkDerivation rec {
5148

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

54-
# FIXME: Move these into a separate package to prevent Bluez from
55-
# depending on Python etc.
5651
postInstall = ''
57-
mkdir -p $test/test
52+
mkdir -p $test/{bin,test}
5853
cp -a test $test
5954
pushd $test/test
6055
for a in \
@@ -65,7 +60,7 @@ stdenv.mkDerivation rec {
6560
list-devices \
6661
monitor-bluetooth \
6762
; do
68-
ln -s ../test/$a $out/bin/bluez-$a
63+
ln -s ../test/$a $test/bin/bluez-$a
6964
done
7065
popd
7166
wrapPythonProgramsIn $test/test "$test/test $pythonPath"

0 commit comments

Comments
 (0)
Please sign in to comment.