security-workarounds exim: make nixos-unstable compatible
This commit is contained in:
parent
c60093ed87
commit
6435c2452b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user