nixpkgs/pkgs/by-name/id/ideviceinstaller/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

56 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, usbmuxd
, libimobiledevice
, libzip
}:
stdenv.mkDerivation rec {
pname = "ideviceinstaller";
version = "1.1.1+date=2023-04-30";
src = fetchFromGitHub {
owner = "libimobiledevice";
repo = pname;
rev = "71ec5eaa30d2780c2614b6b227a2229ea3aeb1e9";
hash = "sha256-YsQwAlt71vouYJzXl0P7b3fG/MfcwI947GtvN4g3/gM=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
usbmuxd
libimobiledevice
libzip
];
# the package uses zip_get_num_entries, which is deprecated
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=deprecated-declarations"
];
preAutoreconf = ''
export RELEASE_VERSION=${version}
'';
meta = with lib; {
homepage = "https://github.com/libimobiledevice/ideviceinstaller";
description = "List/modify installed apps of iOS devices";
longDescription = ''
ideviceinstaller is a tool to interact with the installation_proxy
of an iOS device allowing to install, upgrade, uninstall, archive, restore
and enumerate installed or archived apps.
'';
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ aristid ];
mainProgram = "ideviceinstaller";
};
}