summary refs log tree commit diff
path: root/pkgs/servers/althttpd/default.nix
blob: 1f3271be6ab15356abb55539209171ebc49240d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchfossil, openssl }:

stdenv.mkDerivation rec {
  pname = "althttpd";
  version = "unstable-2022-08-12";

  src = fetchfossil {
    url = "https://sqlite.org/althttpd/";
    rev = "823a1d985d4bacaa";
    sha256 = "sha256-yfVsOfqtHw9ftnK5B4RWeRR/ygfsTEDm7fFSaVxsCas=";
  };

  buildInputs = [ openssl ];

  makeFlags = [ "CC:=$(CC)" ];

  installPhase = ''
    install -Dm755 -t $out/bin althttpd
  '';

  meta = with lib; {
    description = "The Althttpd webserver";
    homepage = "https://sqlite.org/althttpd/";
    license = licenses.publicDomain;
    maintainers = with maintainers; [ siraben ];
    platforms = platforms.all;
  };
}