uhttpd: init at 2023-06-25
Signed-off-by: soyouzpanda <soyouzpanda@soyouzpanda.fr>
This commit is contained in:
parent
5482554d52
commit
2dd59bbbe1
2 changed files with 59 additions and 0 deletions
|
@ -112,6 +112,7 @@ in {
|
||||||
tufted = callPackage ./tufted {};
|
tufted = callPackage ./tufted {};
|
||||||
libubox = callPackage ./libubox {};
|
libubox = callPackage ./libubox {};
|
||||||
ubus = callPackage ./ubus {};
|
ubus = callPackage ./ubus {};
|
||||||
|
uhttpd = callPackage ./uhttpd {};
|
||||||
ustream-ssl = callPackage ./ustream-ssl {};
|
ustream-ssl = callPackage ./ustream-ssl {};
|
||||||
iwinfo = callPackage ./iwinfo {};
|
iwinfo = callPackage ./iwinfo {};
|
||||||
uevent-watch = callPackage ./uevent-watch {};
|
uevent-watch = callPackage ./uevent-watch {};
|
||||||
|
|
58
pkgs/uhttpd/default.nix
Normal file
58
pkgs/uhttpd/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
cmake,
|
||||||
|
libubox,
|
||||||
|
lua,
|
||||||
|
ubus,
|
||||||
|
json_c,
|
||||||
|
ucode,
|
||||||
|
libxcrypt,
|
||||||
|
ustream-ssl
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "uhttpd";
|
||||||
|
version = "unstable-2023-06-25";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "openwrt";
|
||||||
|
repo = "uhttpd";
|
||||||
|
rev = "34a8a74dbdec3c0de38abc1b08f6a73c51263792";
|
||||||
|
hash = "sha256-JJCwZuAoOPUwNUPpB5+mwsV2kD7+kNT60UOfh6F9Rv0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
lua
|
||||||
|
libubox
|
||||||
|
ubus
|
||||||
|
json_c
|
||||||
|
ucode
|
||||||
|
libxcrypt
|
||||||
|
ustream-ssl
|
||||||
|
];
|
||||||
|
|
||||||
|
env.NIX_CFLAGS_COMPILE = toString [ "-I${json_c.dev}/include/json-c" "-D JSONC" "-D LUA_COMPAT_MODULE" ];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DBUILD_LUA=on"
|
||||||
|
"-DLUAPATH=${placeholder "out"}/lib/lua/${lua.luaversion}"
|
||||||
|
"-DBUILD_EXAMPLES=off"
|
||||||
|
"-DBUILD_TESTING=off"
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.luaPackage = lua;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Tiny HTTP server";
|
||||||
|
homepage = "https://github.com/openwrt/uhttpd";
|
||||||
|
maintainers = with lib.maintainers; [ soyouzpanda ];
|
||||||
|
mainProgram = "uhttpd";
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue