Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
autoreconfHook,
|
|
trousers,
|
|
openssl,
|
|
opencryptoki,
|
|
perl,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tpm-tools";
|
|
version = "1.3.9.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/trousers/tpm-tools/${finalAttrs.version}/tpm-tools-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-ivg3lJouwwsZU4msiisxvEn+MVBQdRt9TQ1DK/eBKpc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
mkdir -p po
|
|
mkdir -p m4
|
|
cp -R po_/* po/
|
|
touch po/Makefile.in.in
|
|
touch m4/Makefile.am
|
|
substituteInPlace include/tpm_pkcs11.h \
|
|
--replace-fail "libopencryptoki.so" "${opencryptoki}/lib/opencryptoki/libopencryptoki.so"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
perl
|
|
];
|
|
|
|
buildInputs = [
|
|
trousers
|
|
openssl
|
|
opencryptoki
|
|
];
|
|
|
|
meta = {
|
|
description = "Management tools for TPM hardware";
|
|
longDescription = ''
|
|
tpm-tools is an open-source package designed to enable user and
|
|
application enablement of Trusted Computing using a Trusted Platform
|
|
Module (TPM), similar to a smart card environment.
|
|
'';
|
|
homepage = "https://sourceforge.net/projects/trousers/files/tpm-tools/";
|
|
license = lib.licenses.cpl10;
|
|
maintainers = [ lib.maintainers.ak ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|