summary refs log tree commit diff
diff options
context:
space:
mode:
authorajs124 <git@ajs124.de>2022-11-21 18:17:55 +0100
committerajs124 <git@ajs124.de>2022-11-21 18:17:55 +0100
commit7274df353c0e98c4cfb2e72daa51c87eb2c3cda8 (patch)
treec57de437110a157fa1d5ba243945616f96792a0a
parent2e268225fa44aeeda2f56e86e21aef7c27a26508 (diff)
downloadnixpkgs-7274df353c0e98c4cfb2e72daa51c87eb2c3cda8.tar
nixpkgs-7274df353c0e98c4cfb2e72daa51c87eb2c3cda8.tar.gz
nixpkgs-7274df353c0e98c4cfb2e72daa51c87eb2c3cda8.tar.bz2
nixpkgs-7274df353c0e98c4cfb2e72daa51c87eb2c3cda8.tar.lz
nixpkgs-7274df353c0e98c4cfb2e72daa51c87eb2c3cda8.tar.xz
nixpkgs-7274df353c0e98c4cfb2e72daa51c87eb2c3cda8.tar.zst
nixpkgs-7274df353c0e98c4cfb2e72daa51c87eb2c3cda8.zip
nixos/tests/acme/server: patch certificate generation for longer validity
-rw-r--r--nixos/tests/common/acme/server/generate-certs.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/tests/common/acme/server/generate-certs.nix b/nixos/tests/common/acme/server/generate-certs.nix
index cd8fe0dffca..85c751c56ad 100644
--- a/nixos/tests/common/acme/server/generate-certs.nix
+++ b/nixos/tests/common/acme/server/generate-certs.nix
@@ -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 = ''