mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
43 lines
899 B
Nix
43 lines
899 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-ios";
|
|
version = "1.0.121";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danielpaulus";
|
|
repo = "go-ios";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-zWaEtfxrJYaROQ05nBQvM5fiIRSG+hCecU+BVnpIuck=";
|
|
};
|
|
|
|
vendorHash = "sha256-0Wi9FCTaOD+kzO5cRjpqbXHqx5UAKSGu+hc9bpj+PWo=";
|
|
|
|
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 = "Operating system independent implementation of iOS device features";
|
|
homepage = "https://github.com/danielpaulus/go-ios";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ eyjhb ];
|
|
mainProgram = "ios";
|
|
};
|
|
}
|