nixpkgs/pkgs/development/mobile/maestro/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
946 B
Nix
Raw Normal View History

2022-10-31 21:24:45 +00:00
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre_headless }:
stdenv.mkDerivation rec {
pname = "maestro";
2023-03-16 04:55:53 +00:00
version = "1.25.0";
2022-10-31 21:24:45 +00:00
src = fetchurl {
2022-11-16 22:41:12 +00:00
url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${version}/maestro.zip";
2023-03-16 04:55:53 +00:00
sha256 = "0rkm2rgbbr4rbycg2kz5in2wjklv23jr7ms5p49j3bpa6nkv4jq3";
2022-10-31 21:24:45 +00:00
};
dontUnpack = true;
nativeBuildInputs = [ unzip makeWrapper ];
installPhase = ''
mkdir $out
unzip $src -d $out
2022-11-16 22:41:12 +00:00
mv $out/maestro/* $out
rm -rf $out/maestro
2022-10-31 21:24:45 +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;
changelog = "https://github.com/mobile-dev-inc/maestro/blob/main/CHANGELOG.md";
2022-10-31 21:24:45 +00:00
maintainers = with maintainers; [ SubhrajyotiSen ];
};
}