about summary refs log tree commit diff
path: root/pkgs/by-name/tp
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-10-21 12:47:24 +0200
committerRaito Bezarius <masterancpp@gmail.com>2023-10-21 13:36:52 +0200
commit3e6c2c196e4ea6f2e58fb18968523c2a37bd5f07 (patch)
treea6af757e460132cd79bbb05328db887e21e12ff7 /pkgs/by-name/tp
parentcd6dcea8068eb6fb656df676fc7577b9b07ec8d3 (diff)
downloadnixlib-3e6c2c196e4ea6f2e58fb18968523c2a37bd5f07.tar
nixlib-3e6c2c196e4ea6f2e58fb18968523c2a37bd5f07.tar.gz
nixlib-3e6c2c196e4ea6f2e58fb18968523c2a37bd5f07.tar.bz2
nixlib-3e6c2c196e4ea6f2e58fb18968523c2a37bd5f07.tar.lz
nixlib-3e6c2c196e4ea6f2e58fb18968523c2a37bd5f07.tar.xz
nixlib-3e6c2c196e4ea6f2e58fb18968523c2a37bd5f07.tar.zst
nixlib-3e6c2c196e4ea6f2e58fb18968523c2a37bd5f07.zip
tpm2-totp: init at 0.3.0
Diffstat (limited to 'pkgs/by-name/tp')
-rw-r--r--pkgs/by-name/tp/tpm2-totp/package.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/by-name/tp/tpm2-totp/package.nix b/pkgs/by-name/tp/tpm2-totp/package.nix
new file mode 100644
index 000000000000..766c6e138af6
--- /dev/null
+++ b/pkgs/by-name/tp/tpm2-totp/package.nix
@@ -0,0 +1,46 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, tpm2-tss
+, autoreconfHook
+, autoconf-archive
+, pkg-config
+, qrencode
+}:
+
+stdenv.mkDerivation rec {
+  pname = "tpm2-totp";
+  version = "0.3.0";
+
+  src = fetchFromGitHub {
+    owner = "tpm2-software";
+    repo = "tpm2-totp";
+    rev = "v${version}";
+    hash = "sha256-aeWhI2GQcWa0xAqlmHfcbCMg78UqcD6eanLlEVNVnRM=";
+  };
+
+  preConfigure = ''
+    echo '0.3.0' > VERSION
+  '';
+
+  nativeBuildInputs = [
+    autoreconfHook
+    autoconf-archive
+    pkg-config
+  ];
+
+  buildInputs = [
+    tpm2-tss
+    qrencode
+  ];
+
+  meta = with lib; {
+    description = "Attest the trustworthiness of a device against a human using time-based one-time passwords";
+    homepage = "https://github.com/tpm2-software/tpm2-totp";
+    changelog = "https://github.com/tpm2-software/tpm2-totp/blob/${src.rev}/CHANGELOG.md";
+    license = licenses.bsd3;
+    mainProgram = "tpm2-totp";
+    platforms = platforms.all;
+    maintainers = with maintainers; [ raitobezarius ];
+  };
+}