diff --git a/pkgs/tools/virtualization/rootlesskit/default.nix b/pkgs/tools/virtualization/rootlesskit/default.nix index 61da0d86e33b..d40eb2e07ae4 100644 --- a/pkgs/tools/virtualization/rootlesskit/default.nix +++ b/pkgs/tools/virtualization/rootlesskit/default.nix @@ -1,15 +1,21 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, nix-update-script, nixosTests }: -buildGoPackage rec { +buildGoModule rec { pname = "rootlesskit"; - version = "0.11.1"; - goPackagePath = "github.com/rootless-containers/rootlesskit"; + version = "1.0.0"; src = fetchFromGitHub { owner = "rootless-containers"; repo = "rootlesskit"; rev = "v${version}"; - sha256 = "15k0503077ang9ywvmhpr1l7ax0v3wla0x8n6lqpmd71w0j2zm5r"; + hash = "sha256-Tml6zTc9l3O8qB+NSKlClWl5lj1rkiDHwI5exxBL83A="; + }; + + vendorSha256 = "sha256-CpDPa1LAinvXCnVYbn9ZXuEjyHHlDU4bzZ2R+ctoCzQ="; + + passthru = { + updateScript = nix-update-script { attrPath = pname; }; + tests = nixosTests.docker-rootless; }; meta = with lib; {