3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/tpm-luks/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
893 B
Nix
Raw Normal View History

2022-03-08 13:12:05 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gawk, trousers, cryptsetup, openssl }:
2015-07-04 22:57:59 +01:00
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "tpm-luks";
version = "unstable-2015-07-11";
2015-07-04 22:57:59 +01:00
2022-03-08 13:12:05 +00:00
src = fetchFromGitHub {
owner = "momiji";
repo = "tpm-luks";
2015-07-11 12:50:24 +01:00
rev = "c9c5b7fdddbcdac1cd4d2ea6baddd0617cc88ffa";
2022-03-08 13:12:05 +00:00
sha256 = "sha256-HHyZLZAXfmuimpHV8fOWldZmi4I5uV1NnSmP4E7ZQtc=";
2015-07-04 22:57:59 +01:00
};
2019-03-11 22:48:45 +00:00
patches = [
./openssl-1.1.patch
./signed-ptr.patch
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ gawk trousers cryptsetup openssl ];
2015-07-04 22:57:59 +01:00
installPhase = ''
mkdir -p $out
make install DESTDIR=$out
mv $out/$out/sbin $out/bin
rm -r $out/nix
'';
2015-07-04 22:57:59 +01:00
meta = with lib; {
2015-07-04 22:57:59 +01:00
description = "LUKS key storage in TPM NVRAM";
homepage = "https://github.com/shpedoikal/tpm-luks/";
maintainers = [ ];
2021-02-01 16:47:00 +00:00
license = with licenses; [ gpl2Only ];
platforms = platforms.linux;
2015-07-04 22:57:59 +01:00
};
}