1
2
3
4
5
6
7
8
9
|
# hci-bind: bind HCI_CHANNEL_USER, drop all privileges, exec the stack with
# the socket in FLOSS_HCI_FD. See hci-bind.1.
{ pkgs, ... }:
pkgs.runCommandCC "hci-bind" { } ''
mkdir -p $out/bin $out/share/man/man1
$CC -O2 -Wall -Wextra -Werror -o $out/bin/hci-bind ${./hci-bind.c}
cp ${./hci-bind.1} $out/share/man/man1/hci-bind.1
''
|