hsphfpd: init at 2020-10-25

This commit is contained in:
Edmund Wu 2020-10-24 19:54:30 -04:00 committed by Gabriel Ebner
parent 0e4d0d95d0
commit 0f83b301aa
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ stdenv, fetchFromGitHub, makeWrapper, perlPackages }:
let
perlLibs = with perlPackages; [ NetDBus XMLTwig XMLParser ];
in
stdenv.mkDerivation {
pname = "hsphfpd";
version = "2020-10-25";
src = fetchFromGitHub {
owner = "pali";
repo = "hsphfpd-prototype";
rev = "601bf8f7bf2da97257aa6f786ec4cbb69b0ecbc8";
sha256 = "06hh0xmp143334x8dg5nmp5727g38q2m5kqsvlrfia6vw2hcq0v0";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perlPackages.perl ];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/dbus-1/system.d
cp org.hsphfpd.conf $out/share/dbus-1/system.d
mkdir -p $out/bin
cp *.pl $out/bin
runHook postInstall
'';
postFixup = ''
for f in $out/bin/*.pl; do
wrapProgram "$f" --set PERL5LIB "${perlPackages.makePerlPath perlLibs}"
done
'';
meta = with stdenv.lib; {
description = "Bluetooth HSP/HFP daemon";
homepage = "https://github.com/pali/hsphfpd-prototype";
license = licenses.artistic1;
maintainers = with maintainers; [ gebner ];
platforms = platforms.linux;
};
}

View File

@ -16995,6 +16995,8 @@ in
# PulseAudio daemons
hsphfpd = callPackage ../servers/pulseaudio/hsphfpd.nix { };
pulseaudio-hsphfpd = callPackage ../servers/pulseaudio/pali.nix {
inherit (darwin.apple_sdk.frameworks) CoreServices AudioUnit Cocoa;
};