Fetch User Keys - simple tool for fetching SSH keys from various sources
1{
2 lib,
3 rustPlatform,
4 stdenv,
5 darwin,
6 libiconv,
7 scdoc,
8}:
9rustPlatform.buildRustPackage {
10 pname = "fuk";
11 version = "0.1.0";
12
13 src = ./..;
14
15 cargoHash = "sha256-jdiaV4B22GHKrHpuPv+eKsAt2jMv5AazLJmoEYfdUlE=";
16
17 nativeBuildInputs = [ scdoc ];
18
19 preInstall = ''
20 OUT=$out/man cargo xtask
21 '';
22
23 buildInputs = lib.lists.optionals stdenv.isDarwin (with darwin.apple_sdk; [
24 frameworks.Foundation
25 frameworks.CoreFoundation
26 frameworks.SystemConfiguration
27 frameworks.Security
28 libiconv
29 ]);
30
31 meta = with lib; {
32 description = "Simple tool for fetching SSH keys from various sources";
33 homepage = "https://git.sr.ht/~hauleth/fuk";
34 mainProgram = "fuk";
35 };
36}