Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 028dacdcfb4a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d0b8d591e7aa
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 28, 2019

  1. tpm2-tools: 3.2.0 -> 4.0

    lschuermann authored and ehmry committed Oct 28, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d0b8d59 View commit details
Showing with 20 additions and 8 deletions.
  1. +20 −8 pkgs/tools/security/tpm2-tools/default.nix
28 changes: 20 additions & 8 deletions pkgs/tools/security/tpm2-tools/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
{ stdenv, fetchurl, lib
, cmocka, curl, pandoc, pkgconfig, openssl, tpm2-tss }:
, pandoc, pkgconfig, makeWrapper, curl, openssl, tpm2-tss
, abrmdSupport ? true, tpm2-abrmd ? null }:

stdenv.mkDerivation rec {
pname = "tpm2-tools";
version = "3.2.0";
version = "4.0";

src = fetchurl {
url = "https://github.com/tpm2-software/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "057gg84zly6gjp6ypj6bv6zzmnr77cqsygl8x0147cylwa1ywydd";
sha256 = "02p0wj87fnrpsijd2zaqcxqxicqs36q7vakp6y8and920x36jb0y";
};

nativeBuildInputs = [ pandoc pkgconfig ];
nativeBuildInputs = [ pandoc pkgconfig makeWrapper ];
buildInputs = [
curl openssl tpm2-tss
# For unit tests.
cmocka
];

configureFlags = [ "--enable-unit" ];
doCheck = true;
preFixup = let
ldLibraryPath = lib.makeLibraryPath ([
tpm2-tss
] ++ (lib.optional abrmdSupport tpm2-abrmd));
in ''
for bin in $out/bin/*; do
wrapProgram $bin \
--suffix LD_LIBRARY_PATH : "${ldLibraryPath}"
done
'';


# Unit tests disabled, as they rely on a dbus session
#configureFlags = [ "--enable-unit" ];
doCheck = false;

meta = with lib; {
description = "Command line tools that provide access to a TPM 2.0 compatible device";