summary refs log tree commit diff
path: root/pkgs/tools/security/tpm2-abrmd
diff options
context:
space:
mode:
authorLeon Schuermann <leon@is.currently.online>2019-10-26 13:45:30 +0200
committerLassulus <github@lassul.us>2019-10-26 14:47:20 +0200
commit98f0fcf12b6d700e6d0a4c1c73e492d5c06b7793 (patch)
tree5098872a426f768802c9a59dcbb6cfe4db6fbba3 /pkgs/tools/security/tpm2-abrmd
parentb3e80604a71c9518b6a151682564717538403443 (diff)
downloadnixpkgs-98f0fcf12b6d700e6d0a4c1c73e492d5c06b7793.tar
nixpkgs-98f0fcf12b6d700e6d0a4c1c73e492d5c06b7793.tar.gz
nixpkgs-98f0fcf12b6d700e6d0a4c1c73e492d5c06b7793.tar.bz2
nixpkgs-98f0fcf12b6d700e6d0a4c1c73e492d5c06b7793.tar.lz
nixpkgs-98f0fcf12b6d700e6d0a4c1c73e492d5c06b7793.tar.xz
nixpkgs-98f0fcf12b6d700e6d0a4c1c73e492d5c06b7793.tar.zst
nixpkgs-98f0fcf12b6d700e6d0a4c1c73e492d5c06b7793.zip
tpm2-abrmd: init at 2.2.0
Diffstat (limited to 'pkgs/tools/security/tpm2-abrmd')
-rw-r--r--pkgs/tools/security/tpm2-abrmd/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/security/tpm2-abrmd/default.nix b/pkgs/tools/security/tpm2-abrmd/default.nix
new file mode 100644
index 00000000000..84dafca4e0c
--- /dev/null
+++ b/pkgs/tools/security/tpm2-abrmd/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, lib
+, tpm2-tss, pkgconfig, glib, which, dbus, cmocka }:
+
+stdenv.mkDerivation rec {
+  pname = "tpm2-abrmd";
+  version = "2.2.0";
+
+  src = fetchurl {
+    url = "https://github.com/tpm2-software/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
+    sha256 = "1lbfhyyh9k54r8s1h8ca2czxv4hg0yq984kdh3vqh3990aca0x9a";
+  };
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [
+    tpm2-tss glib which dbus cmocka
+  ];
+
+  # Unit tests are currently broken as the check phase attempts to start a dbus daemon etc.
+  #configureFlags = [ "--enable-unit" ];
+  doCheck = false;
+
+  meta = with lib; {
+    description = "TPM2 resource manager, accessible via D-Bus";
+    homepage = https://github.com/tpm2-software/tpm2-tools;
+    license = licenses.bsd3;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ lschuermann ];
+  };
+}