Files
nixpkgs/pkgs/by-name/ip/ipatool/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.3 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
testers,
ipatool,
}:
buildGoModule rec {
pname = "ipatool";
version = "2.2.0";
src = fetchFromGitHub {
owner = "majd";
repo = "ipatool";
rev = "v${version}";
hash = "sha256-z6f5PNxAH+8mS2kWjhST0LFhwTR01m7rR5O95ee+p2E=";
};
vendorHash = "sha256-f6mXTePiM5kZUdrYqvbN5pyNp1OGNMeJZMUJ3pvaRrc=";
ldflags = [
"-s"
"-w"
"-X github.com/majd/ipatool/v2/cmd.version=${version}"
];
# go generate ./... fails because of a missing module: github.com/golang/mock/mockgen
# which is required to run the tests, check if next release fixes it.
# preCheck = ''
# go generate ./...
# '';
doCheck = false;
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
inherit version;
package = ipatool;
command = "ipatool --version";
};
};
meta = with lib; {
description = "Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store";
homepage = "https://github.com/majd/ipatool";
changelog = "https://github.com/majd/ipatool/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ gaelreyrol ];
mainProgram = "ipatool";
};
}