1 { lib, stdenv, fetchFromGitHub, makeWrapper, perlPackages }:
4 perlLibs = with perlPackages; [ NetDBus XMLTwig XMLParser ];
8 version = "2020-12-05";
10 src = fetchFromGitHub {
12 repo = "hsphfpd-prototype";
13 rev = "d294d064879591e9570ca3f444fa3eee2f269df8";
14 sha256 = "0pm5rbsfrm04hnifzdmsyz17rjk8h9h6d19jaikjc5y36z03xf1c";
17 nativeBuildInputs = [ makeWrapper ];
18 buildInputs = [ perlPackages.perl ];
24 mkdir -p $out/share/dbus-1/system.d
25 cp org.hsphfpd.conf $out/share/dbus-1/system.d
34 for f in $out/bin/*.pl; do
35 wrapProgram "$f" --set PERL5LIB "${perlPackages.makePerlPath perlLibs}"
40 description = "Bluetooth HSP/HFP daemon";
41 homepage = "https://github.com/pali/hsphfpd-prototype";
42 license = licenses.artistic1;
43 maintainers = with maintainers; [ gebner ];
44 platforms = platforms.linux;