504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
902 B
Nix
42 lines
902 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-ios";
|
|
version = "1.0.120";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danielpaulus";
|
|
repo = "go-ios";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-qBy1lfG1Uppld9jwsdxHfV8oibPfr13RONfBl9GSLjs=";
|
|
};
|
|
|
|
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 ];
|
|
mainProgram = "ios";
|
|
};
|
|
}
|