diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-10-02 22:15:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 22:15:43 +0200 |
commit | e554d7260d3c55e823d9df427dda4fe17b9a6982 (patch) | |
tree | a4a1017baefb330ab92a61faf1db44d526bd1f8a /pkgs/tools/virtualization | |
parent | 140b6ebdccd99e665629e4be9ba51d21cbc4be3b (diff) | |
download | nixpkgs-e554d7260d3c55e823d9df427dda4fe17b9a6982.tar nixpkgs-e554d7260d3c55e823d9df427dda4fe17b9a6982.tar.gz nixpkgs-e554d7260d3c55e823d9df427dda4fe17b9a6982.tar.bz2 nixpkgs-e554d7260d3c55e823d9df427dda4fe17b9a6982.tar.lz nixpkgs-e554d7260d3c55e823d9df427dda4fe17b9a6982.tar.xz nixpkgs-e554d7260d3c55e823d9df427dda4fe17b9a6982.tar.zst nixpkgs-e554d7260d3c55e823d9df427dda4fe17b9a6982.zip |
google-guest-agent: add changelog to meta
- minor clean-up
Diffstat (limited to 'pkgs/tools/virtualization')
-rw-r--r-- | pkgs/tools/virtualization/google-guest-agent/default.nix | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/pkgs/tools/virtualization/google-guest-agent/default.nix b/pkgs/tools/virtualization/google-guest-agent/default.nix index 9dc89901ef2..423f43a02de 100644 --- a/pkgs/tools/virtualization/google-guest-agent/default.nix +++ b/pkgs/tools/virtualization/google-guest-agent/default.nix @@ -1,5 +1,12 @@ -{ buildGoModule, fetchFromGitHub, lib, coreutils, makeWrapper -, google-guest-configs, google-guest-oslogin, iproute2, procps +{ lib +, buildGoModule +, fetchFromGitHub +, coreutils +, makeWrapper +, google-guest-configs +, google-guest-oslogin +, iproute2 +, procps }: buildGoModule rec { @@ -9,8 +16,8 @@ buildGoModule rec { src = fetchFromGitHub { owner = "GoogleCloudPlatform"; repo = pname; - rev = version; - sha256 = "sha256-DP15KDnD09edBxOQDwP0cjVIFxjMzE1hu1Sbu6Faj9Y="; + rev = "refs/tags/${version}"; + hash = "sha256-DP15KDnD09edBxOQDwP0cjVIFxjMzE1hu1Sbu6Faj9Y="; }; vendorHash = "sha256-PGvyDjhLwIKhR6NmwzbzjfkBK+FqsziAdsybQmCbtCc="; @@ -27,7 +34,12 @@ buildGoModule rec { ''; # We don't add `shadow` here; it's added to PATH if `mutableUsers` is enabled. - binPath = lib.makeBinPath [ google-guest-configs google-guest-oslogin iproute2 procps ]; + binPath = lib.makeBinPath [ + google-guest-configs + google-guest-oslogin + iproute2 + procps + ]; # Skip tests which require networking. preCheck = '' @@ -44,10 +56,11 @@ buildGoModule rec { ''; meta = with lib; { - homepage = "https://github.com/GoogleCloudPlatform/guest-agent"; description = "Guest Agent for Google Compute Engine"; + homepage = "https://github.com/GoogleCloudPlatform/guest-agent"; + changelog = "https://github.com/GoogleCloudPlatform/guest-agent/releases/tag/${version}"; license = licenses.asl20; - platforms = platforms.linux; maintainers = with maintainers; [ abbradar ]; + platforms = platforms.linux; }; } |