nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 meson,
7 ninja,
8 openssl,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "tlmi-auth";
13 version = "1.0.1";
14
15 src = fetchFromGitHub {
16 owner = "lenovo";
17 repo = "tlmi-auth";
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-/juXQrb3MsQ6FxmrAa7E1f0vIMu1397tZ1pzLfr56M4=";
20 };
21
22 nativeBuildInputs = [
23 meson
24 ninja
25 pkg-config
26 ];
27
28 buildInputs = [
29 openssl
30 ];
31
32 meta = with lib; {
33 homepage = "https://github.com/lenovo/tlmi-auth";
34 maintainers = with maintainers; [ snpschaaf ];
35 description = "Utility for creating signature strings needed for thinklmi certificate based authentication";
36 mainProgram = "tlmi-auth";
37 license = licenses.gpl2;
38 platforms = platforms.linux;
39 };
40})