tpm2-totp: init at 0.3.0
This commit is contained in:
parent
cd6dcea806
commit
3e6c2c196e
1 changed files with 46 additions and 0 deletions
46
pkgs/by-name/tp/tpm2-totp/package.nix
Normal file
46
pkgs/by-name/tp/tpm2-totp/package.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue