python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / tpm-luks / default.nix
blob16d88c9196b80276cf3632ca9901db40f5d9ab19
1 { lib, stdenv, fetchFromGitHub, autoreconfHook, gawk, trousers, cryptsetup, openssl }:
3 stdenv.mkDerivation {
4   pname = "tpm-luks";
5   version = "unstable-2015-07-11";
7   src = fetchFromGitHub {
8     owner = "momiji";
9     repo = "tpm-luks";
10     rev = "c9c5b7fdddbcdac1cd4d2ea6baddd0617cc88ffa";
11     sha256 = "sha256-HHyZLZAXfmuimpHV8fOWldZmi4I5uV1NnSmP4E7ZQtc=";
12   };
14   patches = [
15     ./openssl-1.1.patch
16     ./signed-ptr.patch
17   ];
19   nativeBuildInputs = [ autoreconfHook ];
20   buildInputs = [ gawk trousers cryptsetup openssl ];
22   installPhase = ''
23     mkdir -p $out
24     make install DESTDIR=$out
25     mv $out/$out/sbin $out/bin
26     rm -r $out/nix
27   '';
29   meta = with lib; {
30     description = "LUKS key storage in TPM NVRAM";
31     homepage = "https://github.com/shpedoikal/tpm-luks/";
32     maintainers = [ ];
33     license = with licenses; [ gpl2Only ];
34     platforms = platforms.linux;
35   };