diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-12-02 22:54:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 22:54:44 +0100 |
commit | 96f34a8f9982a2158aee5caac85f132e67d8dafd (patch) | |
tree | c8501a4b9d4d060a78264877d3f5b0fdb6185d44 /pkgs/tools/misc | |
parent | aeadbb8625ba0aada5bb8c737b14af12e566d537 (diff) | |
parent | 7319dc20c941969e052f1eddd94a43e1210389cb (diff) |
Merge pull request #105722 from rb2k/idevicerestore_darwin
idevicerestore: Add darwin build support.
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/idevicerestore/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/misc/idevicerestore/default.nix b/pkgs/tools/misc/idevicerestore/default.nix index 5a6064114419..ab22e413b003 100644 --- a/pkgs/tools/misc/idevicerestore/default.nix +++ b/pkgs/tools/misc/idevicerestore/default.nix @@ -4,6 +4,7 @@ , libirecovery , libzip , libusbmuxd +, IOKit }: stdenv.mkDerivation rec { @@ -31,7 +32,7 @@ stdenv.mkDerivation rec { # Not listing other dependencies specified in # https://github.com/libimobiledevice/idevicerestore/blob/8a882038b2b1e022fbd19eaf8bea51006a373c06/README#L20 # because they are inherited `libimobiledevice`. - ]; + ] ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ]; meta = with stdenv.lib; { homepage = "https://github.com/libimobiledevice/idevicerestore"; @@ -51,8 +52,8 @@ stdenv.mkDerivation rec { This will download and restore a device to the latest firmware available. ''; license = licenses.lgpl21Plus; - # configure.ac suggests it should work for darwin and mingw as well but not tried yet - platforms = platforms.linux; + # configure.ac suggests it should work for mingw as well but not tried yet + platforms = platforms.linux ++ platforms.darwin; maintainers = with maintainers; [ nh2 ]; }; } |