depot/third_party/nixpkgs/pkgs/tools/misc/go-ios/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

41 lines
877 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "go-ios";
version = "1.0.117";
src = fetchFromGitHub {
owner = "danielpaulus";
repo = "go-ios";
rev = "v${version}";
sha256 = "sha256-grkuUDhMusI8S2LhQ8m2z1CoX1Di0/CJK3RZR63N+LU=";
};
vendorHash = "sha256-lLpvpT0QVVyy12HmtOQxagT0JNwRO7CcfkGhCpouH8w=";
excludedPackages = [
"restapi"
];
checkFlags = [
"-tags=fast"
];
postInstall = ''
# aligns the binary with what is expected from go-ios
mv $out/bin/go-ios $out/bin/ios
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "An operating system independent implementation of iOS device features";
homepage = "https://github.com/danielpaulus/go-ios";
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}