about summary refs log tree commit diff
path: root/pkgs/by-name/ra/radcli/package.nix
blob: cc78281df39701aec6a703cf448310eccafe2289 (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
{
  lib,
  stdenv,
  autoreconfHook,
  doxygen,
  fetchFromGitHub,
  gettext,
  gnutls,
  libabigail,
  nettle,
  pkg-config,
}:

stdenv.mkDerivation rec {
  pname = "radcli";
  version = "1.4.0";

  src = fetchFromGitHub {
    owner = "radcli";
    repo = "radcli";
    rev = "refs/tags/${version}";
    hash = "sha256-YnZkFYTiU2VNKxuP+JTnH64XYTB/+imeMKN1mZN9VCQ=";
  };

  postUnpack = ''
    touch ${src.name}/config.rpath
  '';

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    doxygen
    gettext
    gnutls
    libabigail
    nettle
  ];

  meta = with lib; {
    description = "Simple RADIUS client library";
    homepage = "https://github.com/radcli/radcli";
    changelog = "https://github.com/radcli/radcli/blob/${version}/NEWS";
    license = licenses.bsd2;
    maintainers = with maintainers; [ fab ];
    mainProgram = "radcli";
    platforms = platforms.all;
  };
}