git.iko.soy/typeable/nixpkgs
on master help sign in
lighttpd: add patch to fix build on darwin x86_64
commitfef09da9973bad931741a6e0a48fe68535a840eb authorRobert Scott <code@humanleg.org.uk> dateThu 27 Jan 2022, 20:32 (5 years ago) parentecd6b28
1 file changed+9
pkgs/servers/http/lighttpd/default.nix+9
pkgs/servers/http/lighttpd/default.nix+9
@@ -1,4 +1,5 @@
11{ lib, stdenv, buildPackages, fetchurl, pkg-config, pcre2, libxml2, zlib, bzip2, which, file
2+, fetchpatch
23, openssl
34, enableDbi ? false, libdbi
45, enableMagnet ? false, lua5_1
@@ -20,6 +21,14 @@ stdenv.mkDerivation rec {
2021 sha256 = "sha256-4Uidn6dJb78uBxwzi1k7IwDTjCPx5ZZ+UsnvSC4bDiY=";
2122 };
2223
24+ patches = [
25+ (fetchpatch {
26+ name = "macos-10.12-avoid-ccrandomgeneratebytes.patch";
27+ url = "https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/6791f71b20a127b5b0091020dd065f4f9c7cafb6/diff?format=diff";
28+ sha256 = "1x5ybkvxwinl7s1nv3rrc57m4mj38q0gbyjp1ijr4w5lhabw4vzs";
29+ })
30+ ];
31+
2332 postPatch = ''
2433 patchShebangs tests
2534 # Linux sandbox has an empty hostname and not /etc/hosts, which fails some tests