feat(hostapd): ubus support #16
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchFromGitHub, cmake, libubox, json_c, lua5_1 }:
|
{ stdenv, fetchFromGitHub, cmake, libubox, json_c, lua5_1, defaultSocketLocation ? "/run/ubus/ubus.sock" }:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "ubus";
|
pname = "ubus";
|
||||||
version = "unstable-04-09-2024";
|
version = "unstable-04-09-2024";
|
||||||
|
@ -10,6 +10,12 @@ stdenv.mkDerivation {
|
||||||
hash = "sha256-n82Ub0IiuvWbnlDCoN+0hjo/1PbplEbc56kuOYMrHxQ=";
|
hash = "sha256-n82Ub0IiuvWbnlDCoN+0hjo/1PbplEbc56kuOYMrHxQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# We don't use /var/run/ in Liminix by default.
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace CMakeLists.txt \
|
||||||
|
--replace-fail "/var/run/ubus/ubus.sock" "${defaultSocketLocation}"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue