2024-10-30 21:27:47 +01:00
|
|
|
{
|
|
|
|
lib,
|
2025-04-12 20:15:29 +02:00
|
|
|
fetchFromGitea,
|
2024-10-30 21:27:47 +01:00
|
|
|
rustPlatform,
|
|
|
|
dbus,
|
|
|
|
networkmanager,
|
|
|
|
pkg-config,
|
|
|
|
nix-update-script,
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "nm-file-secret-agent";
|
2025-04-12 20:12:39 +02:00
|
|
|
version = "1.1.0";
|
2024-10-30 21:27:47 +01:00
|
|
|
|
2025-04-12 20:15:29 +02:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "lilly";
|
2024-10-30 21:27:47 +01:00
|
|
|
repo = "nm-file-secret-agent";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = "v${version}";
|
2025-04-12 20:12:39 +02:00
|
|
|
hash = "sha256-FZef9qMJeQkoLvCHcsGMqr0riC98WVXntQtbt76Iev4=";
|
2024-10-30 21:27:47 +01:00
|
|
|
};
|
2025-07-15 13:27:09 +02:00
|
|
|
|
2025-04-12 20:12:39 +02:00
|
|
|
cargoHash = "sha256-HYyL0r9YrDL22uQdypJQ7Xep9Uqt4b16bhl0D9kRByU=";
|
2024-10-30 21:27:47 +01:00
|
|
|
buildInputs = [ dbus ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "NetworkManager secret agent that responds with the content of preconfigured files";
|
|
|
|
mainProgram = "nm-file-secret-agent";
|
2025-04-12 20:15:29 +02:00
|
|
|
homepage = "https://codeberg.org/lilly/nm-file-secret-agent";
|
2024-10-30 21:27:47 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ lilioid ];
|
|
|
|
platforms = lib.lists.intersectLists dbus.meta.platforms networkmanager.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|