From 74b8c98aafd0342b14e719f4fe64f8b15364d32f Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 12 Sep 2023 18:44:43 +0100 Subject: [PATCH] kludge fix openssl build --- overlay.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/overlay.nix b/overlay.nix index 7f54b61..a55ce1f 100644 --- a/overlay.nix +++ b/overlay.nix @@ -170,5 +170,18 @@ extraPkgs // { ''; }); + openssl = prev.openssl.overrideAttrs (o: { + # we want to apply + # https://patch-diff.githubusercontent.com/raw/openssl/openssl/pull/20273.patch"; + # which disables overriding the -march cflags to the wrong values, + # but openssl is used for bootstrapping so that's easier said than + # done. Do it the ugly way.. + postPatch = + o.postPatch + + (with final; + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) + "\nsed -i.bak 's/linux.*-mips/linux-mops/' Configure\n"); + }); + pppBuild = prev.ppp; }