Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 34 lines 946 B view raw
1{ lib, stdenv, fetchurl, unzip, makeWrapper, jre_headless }: 2 3stdenv.mkDerivation rec { 4 pname = "maestro"; 5 version = "1.28.0"; 6 7 src = fetchurl { 8 url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${version}/maestro.zip"; 9 sha256 = "15vc8w40fyzg23rj5awifxi6gpb51pbp2khamcs7dypi6263cq54"; 10 }; 11 12 dontUnpack = true; 13 nativeBuildInputs = [ unzip makeWrapper ]; 14 15 installPhase = '' 16 mkdir $out 17 unzip $src -d $out 18 mv $out/maestro/* $out 19 rm -rf $out/maestro 20 ''; 21 22 postFixup = '' 23 wrapProgram $out/bin/maestro --prefix PATH : "${lib.makeBinPath [ jre_headless ]}" 24 ''; 25 26 meta = with lib; { 27 description = "Mobile UI Automation tool"; 28 homepage = "https://maestro.mobile.dev/"; 29 license = licenses.asl20; 30 platforms = lib.platforms.all; 31 changelog = "https://github.com/mobile-dev-inc/maestro/blob/main/CHANGELOG.md"; 32 maintainers = with maintainers; [ SubhrajyotiSen ]; 33 }; 34}