about summary refs log tree commit diff
path: root/pkgs/by-name/li/libideviceactivation/package.nix
blob: 74ee9ddc2cc9c18dffebfa8d2c1a64061f9ef6dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  stdenv,
  fetchFromGitHub,
  lib,
  pkg-config,
  automake,
  autoreconfHook,
  libtool,
  libplist,
  libimobiledevice,
  libxml2,
  curl,
  usbmuxd,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libideviceactivation";
  version = "1.1.1";

  src = fetchFromGitHub {
    owner = "libimobiledevice";
    repo = "libideviceactivation";
    rev = "refs/tags/${finalAttrs.version}";
    hash = "sha256-owcQpCN4+A785oy9pCboJIyfpgZ6X+8PRzqGtWpYl2w=";
  };

  nativeBuildInputs = [
    pkg-config
    automake
    autoreconfHook
  ];

  buildInputs = [
    libtool
    libplist
    libimobiledevice
    libxml2
    curl
    usbmuxd
  ];

  installFlags = [ "PREFIX=$(out)" ];

  meta = {
    description = "A library to manage the activation process of Apple iOS devices.";
    homepage = "https://libimobiledevice.org";
    license = with lib.licenses; [
      lgpl21
      gpl3
    ];
    mainProgram = "ideviceactivation";
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ clebs ];
  };
})