686ce24904
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
34 lines
946 B
Nix
34 lines
946 B
Nix
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre_headless }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "maestro";
|
|
version = "1.23.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${version}/maestro.zip";
|
|
sha256 = "0g508x79vhn7phmk4vlr3c213k0vi6yk0mpfcz5jcg4mpdapfmri";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
nativeBuildInputs = [ unzip makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
unzip $src -d $out
|
|
mv $out/maestro/* $out
|
|
rm -rf $out/maestro
|
|
'';
|
|
|
|
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;
|
|
changelog = "https://github.com/mobile-dev-inc/maestro/blob/main/CHANGELOG.md";
|
|
maintainers = with maintainers; [ SubhrajyotiSen ];
|
|
};
|
|
}
|