libirecovery: 1.0.0 -> 1.0.0+date=2022-04-04, cleanup

This commit is contained in:
Thomas Watson 2022-05-22 20:23:04 -05:00
parent f5138bc9e5
commit 3eb7843e6e

View file

@ -1,35 +1,37 @@
{ lib, stdenv, fetchFromGitHub, automake, autoconf, libtool, pkg-config
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libusb1
, readline
, libimobiledevice-glue
}:
stdenv.mkDerivation rec {
pname = "libirecovery";
version = "1.0.0";
version = "1.0.0+date=2022-04-04";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "libimobiledevice";
repo = pname;
rev = version;
sha256 = "0p9ncqnz5kb7qisw00ynvasw1hax5qx241h9nwppi2g544i9lbnr";
rev = "82d235703044c5af9da8ad8f77351fd2046dac47";
hash = "sha256-OESN9qme+TlSt+ZMbR4F3z/3RN0I12R7fcSyURBqUVk=";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [
autoconf
automake
libtool
autoreconfHook
pkg-config
];
buildInputs = [
libusb1
readline
libimobiledevice-glue
];
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
# Packager note: Not clear whether this needs a NixOS configuration,
# as only the `idevicerestore` binary was tested so far (which worked
# without further configuration).
@ -46,10 +48,9 @@ stdenv.mkDerivation rec {
provided.
'';
homepage = "https://github.com/libimobiledevice/libirecovery";
license = licenses.lgpl21;
license = licenses.lgpl21Only;
maintainers = with maintainers; [ nh2 ];
mainProgram = "irecovery";
# Upstream description says it works on more platforms, but packager hasn't tried that yet
platforms = platforms.linux ++ platforms.darwin;
platforms = platforms.unix;
};
}