From 08f63deadbf0d30de8fe4d8a804c58289365ad1b Mon Sep 17 00:00:00 2001 From: x123 Date: Thu, 11 Jul 2024 16:08:51 +0200 Subject: [PATCH] phraze: Add updateScript and version test --- pkgs/by-name/ph/phraze/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/ph/phraze/package.nix b/pkgs/by-name/ph/phraze/package.nix index 1ebd806bfc1d..bffa86e107ee 100644 --- a/pkgs/by-name/ph/phraze/package.nix +++ b/pkgs/by-name/ph/phraze/package.nix @@ -1,6 +1,9 @@ { lib, fetchFromGitHub, + testers, + nix-update-script, + phraze, rustPlatform, }: @@ -19,6 +22,13 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-kFk04YKDYiABWtild6aaP9H8gt/TuckOWRJE69dAXGU="; + passthru = { + updateScript = nix-update-script { }; + tests = { + version = testers.testVersion { package = phraze; }; + }; + }; + meta = { description = "Generate random passphrases"; homepage = "https://github.com/sts10/phraze";