summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/security-workarounds.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-11-01 14:20:37 +0100
committerlassulus <lassulus@lassul.us>2022-11-01 14:28:15 +0100
commit6435c2452b286131130f044e8d829b51f98d529c (patch)
treebcaae7dcb1e1ef214a33c1dcc891ea8614e17442 /krebs/2configs/security-workarounds.nix
parentc60093ed87174c7d77c6fef124056732132522ce (diff)
security-workarounds exim: make nixos-unstable compatible
Diffstat (limited to 'krebs/2configs/security-workarounds.nix')
-rw-r--r--krebs/2configs/security-workarounds.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/krebs/2configs/security-workarounds.nix b/krebs/2configs/security-workarounds.nix
index 74a77a0ed..cb5d236ac 100644
--- a/krebs/2configs/security-workarounds.nix
+++ b/krebs/2configs/security-workarounds.nix
@@ -4,10 +4,15 @@
nixpkgs.overlays = [
(self: super: {
exim =
- super.exim.overrideAttrs (old: {
+ super.exim.overrideAttrs (old: let
+ key = if builtins.hasAttr "preBuild" old then
+ "preBuild"
+ else
+ "configurePhase";
+ in {
buildInputs = old.buildInputs ++ [ self.gnutls ];
- preBuild = /* sh */ ''
- ${old.preBuild}
+ ${key} = /* sh */ ''
+ ${old.${key}}
sed -Ei '
s:^USE_OPENSSL=.*:# &:
s:^# (USE_GNUTLS)=.*:\1=yes: