2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-ios";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.0.121";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danielpaulus";
|
|
|
|
repo = "go-ios";
|
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-zWaEtfxrJYaROQ05nBQvM5fiIRSG+hCecU+BVnpIuck=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
vendorHash = "sha256-0Wi9FCTaOD+kzO5cRjpqbXHqx5UAKSGu+hc9bpj+PWo=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ios";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|