dooit: add passthru.updateScript

This commit is contained in:
Austin Horstman 2024-03-26 21:22:45 -05:00
parent 00c52fb204
commit 9b0e1b7fce
No known key found for this signature in database
1 changed files with 8 additions and 3 deletions

View File

@ -3,6 +3,7 @@
, dooit
, python3
, testers
, nix-update-script
}:
python3.pkgs.buildPythonApplication rec {
@ -39,9 +40,13 @@ python3.pkgs.buildPythonApplication rec {
# No tests available
doCheck = false;
passthru.tests.version = testers.testVersion {
package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
passthru = {
tests.version = testers.testVersion {
package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
};
updateScript = nix-update-script { };
};
meta = with lib; {