From ce689654cf9bb6d0c44c7561b5f77121892f99b0 Mon Sep 17 00:00:00 2001 From: Philippe Schaaf Date: Fri, 26 Jan 2024 11:31:11 +0100 Subject: [PATCH] tlmi-auth: init at 1.0.1 Signed-off-by: Philippe Schaaf --- pkgs/by-name/tl/tlmi-auth/package.nix | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/tl/tlmi-auth/package.nix diff --git a/pkgs/by-name/tl/tlmi-auth/package.nix b/pkgs/by-name/tl/tlmi-auth/package.nix new file mode 100644 index 000000000000..a4640ab5850e --- /dev/null +++ b/pkgs/by-name/tl/tlmi-auth/package.nix @@ -0,0 +1,39 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, meson +, ninja +, openssl +}: +let + name = "tlmi-auth"; + version = "1.0.1"; +in +stdenv.mkDerivation { + pname = name; + version = version; + + src = fetchFromGitHub { + owner = "lenovo"; + repo = name; + rev = "v${version}"; + hash = "sha256-/juXQrb3MsQ6FxmrAa7E1f0vIMu1397tZ1pzLfr56M4="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + 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 = name; + license = licenses.gpl2; + platforms = platforms.linux; + }; +}