idevicerestore: 1.0.0 -> 1.0.0+date=2022-05-22, cleanup
This commit is contained in:
parent
3eb7843e6e
commit
7b8daf0604
@ -1,23 +1,30 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
, pkg-config
|
||||||
, curl
|
, curl
|
||||||
, libimobiledevice
|
, libimobiledevice
|
||||||
, libirecovery
|
, libirecovery
|
||||||
, libzip
|
, libzip
|
||||||
, libusbmuxd
|
, libusbmuxd
|
||||||
, IOKit
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "idevicerestore";
|
pname = "idevicerestore";
|
||||||
version = "1.0.0";
|
version = "1.0.0+date=2022-05-22";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "libimobiledevice";
|
owner = "libimobiledevice";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = "f80a876b3598de4eb551bafcb279947c527fae33";
|
||||||
sha256 = "1w7ywp77xc6v4hifi3j9ywrj447vv7fkwg2w26w0lq95f3bkblqr";
|
hash = "sha256-I9zZQcZFd0hfeEJM7jltJtVJ6V5C5rA/S8gINiCnJdY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
echo '${version}' > .tarball-version
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoreconfHook
|
autoreconfHook
|
||||||
pkg-config
|
pkg-config
|
||||||
@ -32,7 +39,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Not listing other dependencies specified in
|
# Not listing other dependencies specified in
|
||||||
# https://github.com/libimobiledevice/idevicerestore/blob/8a882038b2b1e022fbd19eaf8bea51006a373c06/README#L20
|
# https://github.com/libimobiledevice/idevicerestore/blob/8a882038b2b1e022fbd19eaf8bea51006a373c06/README#L20
|
||||||
# because they are inherited `libimobiledevice`.
|
# because they are inherited `libimobiledevice`.
|
||||||
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/libimobiledevice/idevicerestore";
|
homepage = "https://github.com/libimobiledevice/idevicerestore";
|
||||||
@ -52,8 +59,7 @@ stdenv.mkDerivation rec {
|
|||||||
This will download and restore a device to the latest firmware available.
|
This will download and restore a device to the latest firmware available.
|
||||||
'';
|
'';
|
||||||
license = licenses.lgpl21Plus;
|
license = licenses.lgpl21Plus;
|
||||||
# configure.ac suggests it should work for mingw as well but not tried yet
|
platforms = platforms.unix;
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
|
||||||
maintainers = with maintainers; [ nh2 ];
|
maintainers = with maintainers; [ nh2 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7048,9 +7048,7 @@ with pkgs;
|
|||||||
|
|
||||||
ifuse = callPackage ../tools/filesystems/ifuse { };
|
ifuse = callPackage ../tools/filesystems/ifuse { };
|
||||||
ideviceinstaller = callPackage ../tools/misc/ideviceinstaller { };
|
ideviceinstaller = callPackage ../tools/misc/ideviceinstaller { };
|
||||||
idevicerestore = callPackage ../tools/misc/idevicerestore {
|
idevicerestore = callPackage ../tools/misc/idevicerestore { };
|
||||||
inherit (darwin) IOKit;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (callPackages ../tools/filesystems/irods rec {
|
inherit (callPackages ../tools/filesystems/irods rec {
|
||||||
stdenv = llvmPackages.libcxxStdenv;
|
stdenv = llvmPackages.libcxxStdenv;
|
||||||
|
Loading…
Reference in New Issue
Block a user