about summary refs log tree commit diff
path: root/pkgs/by-name/tl/tlmi-auth/package.nix
blob: 8ba738a9710040ac954a19f71986926ae6c61f8e (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
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, meson
, ninja
, openssl
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "tlmi-auth";
  version = "1.0.1";

  src = fetchFromGitHub {
    owner = "lenovo";
    repo = "tlmi-auth";
    rev = "v${finalAttrs.version}";
    hash = "sha256-/juXQrb3MsQ6FxmrAa7E1f0vIMu1397tZ1pzLfr56M4=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
  ];

  buildInputs = [
    openssl
  ];

  meta = with lib; {
    homepage = "https://github.com/lenovo/tlmi-auth";
    maintainers = with maintainers; [ snpschaaf ];
    description = "Utility for creating signature strings needed for thinklmi certificate based authentication";
    mainProgram = "tlmi-auth";
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
})