uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/tools/security/tpm2-tools/default.nix
Normal file
40
pkgs/tools/security/tpm2-tools/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, fetchurl, lib
|
||||
, pandoc, pkg-config, makeWrapper, curl, openssl, tpm2-tss, libuuid
|
||||
, abrmdSupport ? true, tpm2-abrmd ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tpm2-tools";
|
||||
version = "5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/tpm2-software/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-wLQC9qezRW6OskRSEeLUHEbH52ngX+TYkJ/2QRn3pjA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pandoc pkg-config makeWrapper ];
|
||||
buildInputs = [
|
||||
curl openssl tpm2-tss libuuid
|
||||
];
|
||||
|
||||
preFixup = let
|
||||
ldLibraryPath = lib.makeLibraryPath ([
|
||||
tpm2-tss
|
||||
] ++ (lib.optional abrmdSupport tpm2-abrmd));
|
||||
in ''
|
||||
wrapProgram $out/bin/tpm2 --suffix LD_LIBRARY_PATH : "${ldLibraryPath}"
|
||||
wrapProgram $out/bin/tss2 --suffix LD_LIBRARY_PATH : "${ldLibraryPath}"
|
||||
'';
|
||||
|
||||
|
||||
# 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";
|
||||
homepage = "https://github.com/tpm2-software/tpm2-tools";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ delroth ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue