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

View File

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