mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
35 lines
946 B
Nix
35 lines
946 B
Nix
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre_headless }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "maestro";
|
|
version = "1.36.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${version}/maestro.zip";
|
|
sha256 = "18zffmqz32dfb66yy48z3dl258rlfc8m2r4021hbrbixvk7k3qb7";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|