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