@@ -0,0 +1,27 @@
1+{ stdenv, fetchgit, trousers, openssl, opencryptoki, automake, autoconf, libtool }:
2+
3+stdenv.mkDerivation rec {
4+ name = "simple-tpm-pk11-2014-09-25";
5+
6+ src = fetchgit {
7+ url = "https://github.com/ThomasHabets/simple-tpm-pk11";
8+ rev = "f26f10e11344560ff6e1479e6795dc0e5dc49a26";
9+ sha256 = "8c9501ceed0557113ce3facf7b22b8baf6f32ebb092008c089b80334ed03cec9";
10+ };
11+
12+ buildInputs = [ trousers openssl opencryptoki automake autoconf libtool ];
13+
14+ preConfigure = "sh bootstrap.sh";
15+
16+ meta = with stdenv.lib; {
17+ description = "Simple PKCS11 provider for TPM chips";
18+ longDescription = ''
19+ A simple library for using the TPM chip to secure SSH keys.
20+ '';
21+ homepage = https://github.com/ThomasHabets/simple-tpm-pk11;
22+ license = stdenv.lib.licenses.asl20;
23+ maintainers = with stdenv.lib; [ maintainers.tstrobel ];
24+ platforms = platforms.unix;
25+ };
26+}
27+