2022-11-04 12:27:35 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre_headless }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "maestro";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.34.1";
|
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-11-16 04:20:00 +00:00
|
|
|
sha256 = "0whnhcf7a3j01693254qqwfk9d3xa4icv4kyqkn4ihxyibznb91d";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|