From eb481df8e4ea936785450933c4c6243210c18764 Mon Sep 17 00:00:00 2001 From: SubhrajyotiSen Date: Tue, 1 Nov 2022 02:54:45 +0530 Subject: [PATCH] maestro: init at 1.11.3 --- pkgs/development/mobile/maestro/default.nix | 33 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/mobile/maestro/default.nix diff --git a/pkgs/development/mobile/maestro/default.nix b/pkgs/development/mobile/maestro/default.nix new file mode 100644 index 000000000000..1c3e6f1a8f3c --- /dev/null +++ b/pkgs/development/mobile/maestro/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1a542e842631..c33e13d771d9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31775,6 +31775,8 @@ with pkgs; maestral-gui = libsForQt5.callPackage ../applications/networking/maestral-qt { }; + maestro = callPackage ../development/mobile/maestro { }; + myfitnesspal = with python3Packages; toPythonApplication myfitnesspal; insync = callPackage ../applications/networking/insync { };