blob: 1c3e6f1a8f3c8106c9ddc6af9b04fd559a08fadb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre_headless }:
stdenv.mkDerivation rec {
pname = "maestro";
version = "1.11.3";
src = fetchurl {
url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${version}/maestro-${version}.zip";
sha256 = "0hjsrwp6d1k68p0qhn7v9689ihy06ssnfpi8dj61jw6r64c234m4";
};
dontUnpack = true;
nativeBuildInputs = [ unzip makeWrapper ];
installPhase = ''
mkdir $out
unzip $src -d $out
mv $out/maestro-$version/* $out
rm -rf $out/maestro-$version
'';
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;
maintainers = with maintainers; [ SubhrajyotiSen ];
};
}
|