11 stdenv.mkDerivation (finalAttrs: {
16 url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${finalAttrs.version}/maestro.zip";
17 hash = "sha256-nvnxk3iyko2pgajmQO8F7N9EpPte3g2i5y+Wyst14mU=";
29 mv $out/maestro/* $out
34 wrapProgram $out/bin/maestro --prefix PATH : "${lib.makeBinPath [ jre_headless ]}"
37 passthru.updateScript = writeScript "update-maestro" ''
38 #!/usr/bin/env nix-shell
39 #!nix-shell -i bash -p curl jq common-updater-scripts
40 set -o errexit -o nounset -o pipefail
42 NEW_VERSION=$(curl --silent https://api.github.com/repos/mobile-dev-inc/maestro/releases | jq 'first(.[].tag_name | ltrimstr("cli-") | select(contains("dev.") | not))' --raw-output)
44 update-source-version "maestro" "$NEW_VERSION" --print-changes
48 description = "Mobile UI Automation tool";
49 homepage = "https://maestro.mobile.dev/";
50 license = licenses.asl20;
51 platforms = lib.platforms.all;
52 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
53 changelog = "https://github.com/mobile-dev-inc/maestro/blob/main/CHANGELOG.md";
54 maintainers = with maintainers; [ SubhrajyotiSen ];
55 mainProgram = "maestro";