Unverified Commit 62c2d2b5 authored by Anthony Roussel's avatar Anthony Roussel
Browse files

ssm-agent: add passthru.updateScript

parent 53499f6c
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -8,9 +8,10 @@
, dmidecode
, util-linux
, bashInteractive
, overrideEtc ? true
, nix-update-script
, testers
, ssm-agent
, overrideEtc ? true
}:

let
@@ -131,10 +132,13 @@ buildGoPackage rec {
    wrapProgram $out/bin/amazon-ssm-agent --prefix PATH : ${bashInteractive}/bin
  '';

  passthru.tests.version = testers.testVersion {
  passthru = {
    updateScript = nix-update-script { };
    tests.version = testers.testVersion {
      package = ssm-agent;
      command = "amazon-ssm-agent --version";
    };
  };

  meta = with lib; {
    description = "Agent to enable remote management of your Amazon EC2 instance configuration";