Skip to content

Commit edc7876

Browse files
committed
uhttpd: init at 0-unstable-2025-12-24
1 parent d38169b commit edc7876

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

pkgs/by-name/uh/uhttpd/package.nix

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchgit,
5+
cmake,
6+
pkg-config,
7+
lua5_1,
8+
json_c,
9+
libubox-wolfssl,
10+
ubus,
11+
libxcrypt,
12+
unstableGitUpdater,
13+
makeWrapper,
14+
}:
15+
16+
stdenv.mkDerivation (finalAttrs: {
17+
pname = "uhttpd";
18+
version = "0-unstable-2025-12-24";
19+
20+
src = fetchgit {
21+
url = "https://git.openwrt.org/project/uhttpd.git";
22+
rev = "506e24987b97fbc866005bfb71316bd63601a1ef";
23+
hash = "sha256-x5hbbEcyxWhCjjqiHvAxvI1eHewqRlXuAGqXNw+c4sA=";
24+
};
25+
26+
nativeBuildInputs = [
27+
cmake
28+
pkg-config
29+
makeWrapper
30+
];
31+
32+
buildInputs = [
33+
lua5_1
34+
json_c
35+
libubox-wolfssl
36+
ubus
37+
libxcrypt
38+
];
39+
40+
cmakeFlags = [
41+
"-DUCODE_SUPPORT=off"
42+
"-DTLS_SUPPORT=on"
43+
"-DLUA_SUPPORT=on"
44+
];
45+
46+
NIX_LDFLAGS = "-lcrypt";
47+
48+
postInstall = ''
49+
wrapProgram $out/bin/uhttpd \
50+
--prefix LD_LIBRARY_PATH : $out/lib/uhttpd
51+
'';
52+
53+
passthru.updateScript = unstableGitUpdater {
54+
branch = "master";
55+
hardcodeZeroVersion = true;
56+
};
57+
58+
meta = {
59+
description = "Tiny HTTP server from OpenWrt project";
60+
homepage = "https://openwrt.org/docs/guide-user/services/webserver/uhttpd";
61+
license = lib.licenses.isc;
62+
platforms = lib.platforms.unix;
63+
maintainers = [ lib.maintainers.haylin ];
64+
mainProgram = "uhttpd";
65+
};
66+
})

0 commit comments

Comments
 (0)