2022-11-04 12:27:35 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre_headless }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "maestro";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.28.0";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-17 10:02:37 +00:00
|
|
|
url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${version}/maestro.zip";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "15vc8w40fyzg23rj5awifxi6gpb51pbp2khamcs7dypi6263cq54";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ unzip makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
unzip $src -d $out
|
2022-12-17 10:02:37 +00:00
|
|
|
mv $out/maestro/* $out
|
|
|
|
rm -rf $out/maestro
|
2022-11-04 12:27:35 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/maestro --prefix PATH : "${lib.makeBinPath [ jre_headless ]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Mobile UI Automation tool";
|
|
|
|
homepage = "https://maestro.mobile.dev/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = lib.platforms.all;
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/mobile-dev-inc/maestro/blob/main/CHANGELOG.md";
|
2022-11-04 12:27:35 +00:00
|
|
|
maintainers = with maintainers; [ SubhrajyotiSen ];
|
|
|
|
};
|
|
|
|
}
|