nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromCodeberg,
4 rustPlatform,
5 dbus,
6 networkmanager,
7 pkg-config,
8 nix-update-script,
9}:
10rustPlatform.buildRustPackage rec {
11 pname = "nm-file-secret-agent";
12 version = "1.2.0";
13
14 src = fetchFromCodeberg {
15 owner = "lilly";
16 repo = "nm-file-secret-agent";
17 rev = "v${version}";
18 hash = "sha256-exU+9fN2Wt2+0lQoZS4TFPhCcoDPWEIZldRO9LKux3U=";
19 };
20
21 cargoHash = "sha256-jxeEubl1uXmnapvP2OV4jCQWoavAVPbSPL1C3fFtJlE=";
22 buildInputs = [ dbus ];
23 nativeBuildInputs = [ pkg-config ];
24
25 passthru.updateScript = nix-update-script { };
26
27 meta = {
28 description = "NetworkManager secret agent that responds with the content of preconfigured files";
29 mainProgram = "nm-file-secret-agent";
30 homepage = "https://codeberg.org/lilly/nm-file-secret-agent";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ lilioid ];
33 platforms = lib.lists.intersectLists dbus.meta.platforms networkmanager.meta.platforms;
34 };
35}