depot/third_party/nixpkgs/pkgs/servers/althttpd/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
683 B
Nix

{ lib, stdenv, fetchfossil, openssl }:
stdenv.mkDerivation rec {
pname = "althttpd";
version = "unstable-2023-08-12";
src = fetchfossil {
url = "https://sqlite.org/althttpd/";
rev = "c0bdc68e6c56ef25";
sha256 = "sha256-VoDR5MlVlvar9wYA0kUhvDQVjxDwsZlqrNR3u4Tqw5c=";
};
buildInputs = [ openssl ];
makeFlags = [ "CC:=$(CC)" ];
installPhase = ''
install -Dm755 -t $out/bin althttpd
'';
meta = with lib; {
description = "Althttpd webserver";
homepage = "https://sqlite.org/althttpd/";
license = licenses.publicDomain;
maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
mainProgram = "althttpd";
};
}