diff --git a/pkgs/tools/misc/go-ios/default.nix b/pkgs/tools/misc/go-ios/default.nix new file mode 100644 index 000000000000..d16e023a9eb1 --- /dev/null +++ b/pkgs/tools/misc/go-ios/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, nix-update-script +}: + +buildGoModule rec { + pname = "go-ios"; + version = "1.0.115"; + + src = fetchFromGitHub { + owner = "danielpaulus"; + repo = "go-ios"; + rev = "v${version}"; + sha256 = "sha256-pvgdGBLgRHvnGdAyA4Rrexkh5oRzVT7AYgKfLNfSf7M="; + }; + + vendorSha256 = "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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0efc86244119..c585a3a0eeb4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -915,6 +915,8 @@ with pkgs; gomi = callPackage ../tools/misc/gomi { }; + go-ios = callPackage ../tools/misc/go-ios { }; + graph-easy = callPackage ../tools/graphics/graph-easy { }; mangal = callPackage ../applications/misc/mangal { };