From 3eb7843e6ee02320e505b9db5237af1164536473 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sun, 22 May 2022 20:23:04 -0500 Subject: [PATCH] libirecovery: 1.0.0 -> 1.0.0+date=2022-04-04, cleanup --- .../libraries/libirecovery/default.nix | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/pkgs/development/libraries/libirecovery/default.nix b/pkgs/development/libraries/libirecovery/default.nix index c10d46577ff..1de958dfb3a 100644 --- a/pkgs/development/libraries/libirecovery/default.nix +++ b/pkgs/development/libraries/libirecovery/default.nix @@ -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; }; }