about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-03-24 22:43:57 +0100
committerGitHub <noreply@github.com>2024-03-24 22:43:57 +0100
commite6b9a28514019ca9651b76882db1af8c38a336e3 (patch)
tree60b5dc3b57e2438e1be03facb5e30fa595ddab69
parent2f84b0a7e8e97f5c9f6cfbb2c2b29d350f323209 (diff)
Revert "appium-inspector: init at 2024.3.1"
-rw-r--r--pkgs/by-name/ap/appium-inspector/Fix-Open-File.patch13
-rw-r--r--pkgs/by-name/ap/appium-inspector/package.nix62
2 files changed, 0 insertions, 75 deletions
diff --git a/pkgs/by-name/ap/appium-inspector/Fix-Open-File.patch b/pkgs/by-name/ap/appium-inspector/Fix-Open-File.patch
deleted file mode 100644
index 07654292c45bf..0000000000000
--- a/pkgs/by-name/ap/appium-inspector/Fix-Open-File.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/app/main.js b/app/main.js
-index a6607a8..b81c8cb 100644
---- a/app/main.js
-+++ b/app/main.js
-@@ -6,7 +6,7 @@ import {setupMainWindow} from './main/windows';
- 
- const isDev = process.env.NODE_ENV === 'development';
- 
--export let openFilePath = getAppiumSessionFilePath(process.argv, app.isPackaged, isDev);
-+export let openFilePath = getAppiumSessionFilePath(process.argv, false, isDev);
- 
- app.on('open-file', (event, filePath) => {
-   openFilePath = filePath;
diff --git a/pkgs/by-name/ap/appium-inspector/package.nix b/pkgs/by-name/ap/appium-inspector/package.nix
deleted file mode 100644
index 7cdfca26459c9..0000000000000
--- a/pkgs/by-name/ap/appium-inspector/package.nix
+++ /dev/null
@@ -1,62 +0,0 @@
-{ fetchFromGitHub
-, buildNpmPackage
-, makeWrapper
-, electron_13
-, copyDesktopItems
-, makeDesktopItem
-, nix-update-script
-, stdenv
-, lib
-}:
-let
-  electron = electron_13;
-in buildNpmPackage rec {
-  pname = "appium-inspector";
-  version = "2024.3.1";
-
-  patches = [ ./Fix-Open-File.patch ];
-
-  src = fetchFromGitHub {
-    owner = "appium";
-    repo = "appium-inspector";
-    rev = "v${version}";
-    hash = "sha256-X384CjAX3glsPpXqc6Rht6OqXB8imclwXv26tYaYfxk=";
-  };
-
-  npmDepsHash = "sha256-9/wf/psbn9uZ+9ZYTSV4IKjgprWYaMSYorVgStR9yVU=";
-  npmFlags = ["--ignore-scripts"];
-
-  nativeBuildInputs = [ makeWrapper copyDesktopItems ];
-
-  installPhase = ''
-    mkdir -p "$out/share/appium-inspector"
-
-    cp -r './node_modules' "$out/share/appium-inspector/node_modules"
-    cp -r './dist' "$out/share/appium-inspector/"
-    cp './package.json' "$out/share/appium-inspector/package.json"
-
-    # executable wrapper
-    makeWrapper '${electron}/bin/electron' "$out/bin/appium-inspector" \
-      --add-flags "$out/share/appium-inspector/dist/main.js" \
-      --set NODE_ENV production
-  '';
-
-  desktopItem = makeDesktopItem {
-    name = "appium-inspector";
-    exec = "appium-inspector %u";
-    desktopName = "Appium Inspector";
-    comment = meta.description;
-    categories = [ "Development" ];
-  };
-
-  passthru.updateScript = nix-update-script { };
-
-  meta = {
-    description = "A GUI inspector for mobile apps and more, powered by a (separately installed) Appium server";
-    homepage = "https://appium.github.io/appium-inspector";
-    license = lib.licenses.asl20;
-    mainProgram = "appium-inspector";
-    maintainers = with lib.maintainers; [ marie ];
-    inherit (electron.meta) platforms;
-  };
-}