docker-credential-gcr: add passthru.updateScript

This commit is contained in:
Anthony Roussel 2024-03-24 11:39:35 +01:00
parent a076e82dde
commit ba4ee66798
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E
1 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,11 @@
{ lib, buildGoModule, fetchFromGitHub, fetchpatch, testers, docker-credential-gcr }:
{
buildGoModule,
docker-credential-gcr,
fetchFromGitHub,
lib,
nix-update-script,
testers,
}:
buildGoModule rec {
pname = "docker-credential-gcr";
@ -33,9 +40,12 @@ buildGoModule rec {
"-X github.com/GoogleCloudPlatform/docker-credential-gcr/config.Version=${version}"
];
passthru.tests.version = testers.testVersion {
package = docker-credential-gcr;
command = "docker-credential-gcr version";
passthru = {
tests.version = testers.testVersion {
package = docker-credential-gcr;
command = "docker-credential-gcr version";
};
updateScript = nix-update-script { };
};
meta = with lib; {