nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchfossil,
5 openssl,
6}:
7
8stdenv.mkDerivation {
9 pname = "althttpd";
10 version = "0-unstable-2023-08-12";
11
12 src = fetchfossil {
13 url = "https://sqlite.org/althttpd/";
14 rev = "c0bdc68e6c56ef25";
15 hash = "sha256-VoDR5MlVlvar9wYA0kUhvDQVjxDwsZlqrNR3u4Tqw5c=";
16 };
17
18 buildInputs = [ openssl ];
19
20 makeFlags = [ "CC:=$(CC)" ];
21
22 installPhase = ''
23 install -Dm755 -t $out/bin althttpd
24 '';
25
26 meta = {
27 description = "Althttpd webserver";
28 homepage = "https://sqlite.org/althttpd/";
29 license = lib.licenses.publicDomain;
30 maintainers = with lib.maintainers; [ siraben ];
31 platforms = lib.platforms.all;
32 mainProgram = "althttpd";
33 };
34}