Skip to content

Commit

Permalink
Merge pull request #296440 from siddarthkay/backport-290932-to-releas…
Browse files Browse the repository at this point in the history
…e-23.11

[23.11] backport idb-companion: init at 1.1.8
  • Loading branch information
drupol committed Mar 18, 2024
2 parents 2ba1b9d + 562eb13 commit 5d39f83
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/by-name/id/idb-companion/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib
, stdenv
, fetchurl
}:

stdenv.mkDerivation (finalAttrs: {
pname = "idb-companion";
version = "1.1.8";

src = fetchurl {
url = "https://github.com/facebook/idb/releases/download/v${finalAttrs.version}/idb-companion.universal.tar.gz";
hash = "sha256-O3LMappbGiKhiCBahAkNOilDR6hGGA79dVzxo8hI4+c=";
};

sourceRoot = "idb-companion.universal";

installPhase = ''
runHook preInstall
mkdir -p $out
cp -r . $out/
runHook postInstall
'';

meta = with lib; {
description = "A powerful command line tool for automating iOS simulators and devices";
homepage = "https://github.com/facebook/idb";
license = licenses.mit;
platforms = platforms.darwin;
mainProgram = "idb_companion";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ siddarthkay ];
};
})

0 comments on commit 5d39f83

Please sign in to comment.