This repository has no description
1.0 kB
44 lines
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "phonetpm";
10 version = "0.4.2";
11
12 src = fetchFromGitHub {
13 owner = "Lassulus";
14 repo = "phonetpm";
15 tag = "v${version}";
16 hash = "sha256-SCrCuaeAwx7bs3Y8IXmOf5Zwx3UudTX52ODCrnm2iKM=";
17 };
18
19 cargoHash = "sha256-pTgkA+jc+G8GxiDsVHP5q9Zt55k1nyr1ltAAqRXEpqc=";
20
21 # Host side only: `phonetpm` (daemon/pair/keys) and `age-plugin-phone`.
22 # The workspace also holds the Android core (uniffi cdylib), not needed here.
23 cargoBuildFlags = [
24 "-p"
25 "phonetpm"
26 ];
27 cargoTestFlags = cargoBuildFlags;
28
29 passthru.updateScript = nix-update-script {
30 extraArgs = [
31 "--flake"
32 "--system"
33 "x86_64-linux"
34 ];
35 };
36
37 meta = {
38 description = "Android phone as a biometric ssh-agent and age backend over iroh";
39 homepage = "https://github.com/Lassulus/phonetpm";
40 license = lib.licenses.mit;
41 mainProgram = "phonetpm";
42 platforms = lib.platforms.linux ++ lib.platforms.darwin;
43 };
44}