uhttpd: init at 0-unstable-2025-12-24 (#442270)

This commit is contained in:
Colin
2026-03-06 04:25:18 +00:00
committed by GitHub
+66
View File
@@ -0,0 +1,66 @@
{
lib,
stdenv,
fetchgit,
cmake,
pkg-config,
lua5_1,
json_c,
libubox-wolfssl,
ubus,
libxcrypt,
unstableGitUpdater,
makeWrapper,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "uhttpd";
version = "0-unstable-2025-12-24";
src = fetchgit {
url = "https://git.openwrt.org/project/uhttpd.git";
rev = "506e24987b97fbc866005bfb71316bd63601a1ef";
hash = "sha256-x5hbbEcyxWhCjjqiHvAxvI1eHewqRlXuAGqXNw+c4sA=";
};
nativeBuildInputs = [
cmake
pkg-config
makeWrapper
];
buildInputs = [
lua5_1
json_c
libubox-wolfssl
ubus
libxcrypt
];
cmakeFlags = [
"-DUCODE_SUPPORT=off"
"-DTLS_SUPPORT=on"
"-DLUA_SUPPORT=on"
];
NIX_LDFLAGS = "-lcrypt";
postInstall = ''
wrapProgram $out/bin/uhttpd \
--prefix LD_LIBRARY_PATH : $out/lib/uhttpd
'';
passthru.updateScript = unstableGitUpdater {
branch = "master";
hardcodeZeroVersion = true;
};
meta = {
description = "Tiny HTTP server from OpenWrt project";
homepage = "https://openwrt.org/docs/guide-user/services/webserver/uhttpd";
license = lib.licenses.isc;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.haylin ];
mainProgram = "uhttpd";
};
})