mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
44 lines
966 B
Nix
44 lines
966 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
unzip,
|
|
makeWrapper,
|
|
jre_headless,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "maestro";
|
|
version = "1.37.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${version}/maestro.zip";
|
|
hash = "sha256-bWZuD2+v6molwW1ef2a3djBnVfYscBjILLGXeeSUmoU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|