diff options
author | Ilan Joselevich <personal@ilanjoselevich.com> | 2023-06-14 21:22:31 +0300 |
---|---|---|
committer | Ilan Joselevich <personal@ilanjoselevich.com> | 2023-06-15 00:25:43 +0300 |
commit | c6dfb26702fa23aaa1c289af3cf5b61ff0915c73 (patch) | |
tree | 0790fbbd72d9fb0fe1e97ae1443a27677a39d925 /pkgs/tools/security/age-plugin-tpm | |
parent | a62bcbcd129bc39c1e46d04a5428d04c469a9669 (diff) | |
download | nixlib-c6dfb26702fa23aaa1c289af3cf5b61ff0915c73.tar nixlib-c6dfb26702fa23aaa1c289af3cf5b61ff0915c73.tar.gz nixlib-c6dfb26702fa23aaa1c289af3cf5b61ff0915c73.tar.bz2 nixlib-c6dfb26702fa23aaa1c289af3cf5b61ff0915c73.tar.lz nixlib-c6dfb26702fa23aaa1c289af3cf5b61ff0915c73.tar.xz nixlib-c6dfb26702fa23aaa1c289af3cf5b61ff0915c73.tar.zst nixlib-c6dfb26702fa23aaa1c289af3cf5b61ff0915c73.zip |
age-plugin-tpm: init at unstable-2023-05-02
Diffstat (limited to 'pkgs/tools/security/age-plugin-tpm')
-rw-r--r-- | pkgs/tools/security/age-plugin-tpm/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/security/age-plugin-tpm/default.nix b/pkgs/tools/security/age-plugin-tpm/default.nix new file mode 100644 index 000000000000..d79f8805c943 --- /dev/null +++ b/pkgs/tools/security/age-plugin-tpm/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, swtpm +}: + +buildGoModule { + pname = "age-plugin-tpm"; + version = "unstable-2023-05-02"; + + src = fetchFromGitHub { + owner = "Foxboron"; + repo = "age-plugin-tpm"; + rev = "c570739b05c067087c44f651efce6890eedc0647"; + hash = "sha256-xlJtyNAYi/6vBWLsjymFLGfr30w80OplwG2xGTEB118="; + }; + + vendorHash = "sha256-S9wSxw0ZMibCOspgGt5vjzFhPL+bZncjTdIX2mkX5vE="; + + postConfigure = '' + substituteInPlace vendor/github.com/foxboron/swtpm_test/swtpm.go \ + --replace "/usr/share/swtpm/swtpm-create-user-config-files" "${swtpm}/share/swtpm/swtpm-create-user-config-files" + ''; + + nativeCheckInputs = [ + swtpm + ]; + + ldflags = [ + "-s" + "-w" + ]; + + meta = with lib; { + description = "TPM 2.0 plugin for age"; + homepage = "https://github.com/Foxboron/age-plugin-tpm"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ kranzes ]; + }; +} |