bozohttpd: 20210227 -> 20220517

This commit is contained in:
Alyssa Ross 2023-05-01 16:33:40 +00:00
parent 7be7944bd7
commit 2d8c06b637

View File

@ -22,27 +22,15 @@ let inherit (lib) optional optionals;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bozohttpd"; pname = "bozohttpd";
version = "20210227"; version = "20220517";
# bozohttpd is developed in-tree in pkgsrc, canonical hashes can be found at: # bozohttpd is developed in-tree in pkgsrc, canonical hashes can be found at:
# http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/www/bozohttpd/distinfo # http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/www/bozohttpd/distinfo
src = fetchurl { src = fetchurl {
url = "http://www.eterna.com.au/${pname}/${pname}-${version}.tar.bz2"; url = "http://www.eterna.com.au/${pname}/${pname}-${version}.tar.bz2";
sha512 = "b838498626ffb7f7e84f31611e0e99aaa3af64bd9376e1a13ec16313c182eebfd9ea2c2d03904497239af723bf34a3d2202dac1f2d3e55f9fd076f6d45ccfa33"; sha512 = "275b8fab3cf2e6c59721682cae952db95da5bd3b1f20680240c6cf1029463693f6feca047fbef5e3a3e7528b40b7b2e87b2a56fd800b612e679a16f24890e5b6";
}; };
# backport two unreleased commits to fix builds on non-netbsd platforms.
patches = [
# add missing `#include <stdint.h>`
# https://freshbsd.org/netbsd/src/commit/qMGNoXfgeieZBVRC
./0001-include-stdint.h.patch
# BUFSIZ is not guaranteed to be large enough
# https://freshbsd.org/netbsd/src/commit/A4ueIHIp3JgjNVRC
./0002-dont-use-host-BUFSIZ.patch
];
patchFlags = [ "-p3" ];
buildInputs = [ openssl libxcrypt ] ++ optional (luaSupport) lua; buildInputs = [ openssl libxcrypt ] ++ optional (luaSupport) lua;
nativeBuildInputs = [ bmake groff ]; nativeBuildInputs = [ bmake groff ];