seedrng #3

Open
lbailly wants to merge 57 commits from seedrng into main
Showing only changes of commit 54db2ad006 - Show all commits

View file

@ -1,9 +1,9 @@
{ {
lib, lib,
stdenv, stdenv,
fetchgit, fetchFromGitea,
cmake, cmake,
lua5_1, lua,
json_c json_c
}: }:
@ -11,30 +11,32 @@ stdenv.mkDerivation rec {
pname = "libubox"; pname = "libubox";
version = "unstable-2024-04-09"; version = "unstable-2024-04-09";
src = fetchgit { src = fetchFromGitea {
url = "https://git.openwrt.org/project/libubox.git"; domain = "git.dgnum.eu";
rev = "eb9bcb64185ac155c02cc1a604692c4b00368324"; owner = "DGNum";
hash = "sha256-5KO2E+4pcDp/pe2+vjoQDmyMwCc0yKm847U4J6HjxyA="; repo = "libubox";
rev = "1c4b2dc4c12848e1b70b11e1cb2139ca8f19c860";
hash = "sha256-aPhGJ7viXQmnoQRY8DuRvtwtxSy+S4qPj1fBsK066Yc=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
lua5_1 lua
]; ];
buildInputs = [ buildInputs = [
lua5_1 lua
json_c json_c
]; ];
# Otherwise, CMake cannot find jsoncpp? # Otherwise, CMake cannot find jsoncpp?
env.NIX_CFLAGS_COMPILE = toString [ "-I${json_c.dev}/include/json-c" "-D JSONC" ]; env.NIX_CFLAGS_COMPILE = toString [ "-I${json_c.dev}/include/json-c" "-D JSONC" "-D LUA_COMPAT_MODULE" ];
cmakeFlags = [ cmakeFlags = [
"-DBUILD_EXAMPLES=off" "-DBUILD_EXAMPLES=off"
# TODO: it explode at install phase. # TODO: it explode at install phase.
"-DBUILD_LUA=on" "-DBUILD_LUA=on"
"-DLUAPATH=${placeholder "out"}/lib/lua" "-DLUAPATH=${placeholder "out"}/lib/lua/${lua.luaversion}/"
]; ];
meta = { meta = {