Created
December 9, 2018 18:28
-
-
Save nh2/94049ce3d3cc8ab82a814ded9f7b5277 to your computer and use it in GitHub Desktop.
Shows how to add `-P` to bluetoothd in NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "bluez-patched-systemd-unit"; | |
buildCommand = let | |
in '' | |
set -eo pipefail | |
cp -rvs ${pkgs.bluez} --no-preserve=mode $out | |
sed --in-place 's:bluetooth/bluetoothd:bluetooth/bluetoothd -P:g' $out/etc/systemd/system/bluetooth.service | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment