nixos/tests/acme/server: patch certificate generation for longer validity

This commit is contained in:
ajs124 2022-11-21 18:17:55 +01:00
parent 2e268225fa
commit 7274df353c

View File

@ -10,7 +10,11 @@ let
domain = conf.domain;
in mkDerivation {
name = "test-certs";
buildInputs = [ minica ];
buildInputs = [ (minica.overrideAttrs (old: {
prePatch = ''
sed -i 's_NotAfter: time.Now().AddDate(2, 0, 30),_NotAfter: time.Now().AddDate(20, 0, 0),_' main.go
'';
})) ];
phases = [ "buildPhase" "installPhase" ];
buildPhase = ''