Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchfossil, 5 openssl, 6}: 7 8stdenv.mkDerivation { 9 pname = "althttpd"; 10 version = "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 = with lib; { 27 description = "Althttpd webserver"; 28 homepage = "https://sqlite.org/althttpd/"; 29 license = licenses.publicDomain; 30 maintainers = with maintainers; [ siraben ]; 31 platforms = platforms.all; 32 mainProgram = "althttpd"; 33 }; 34}