feat(awgen): add AmneziaWG configuration generator package
CI / check (push) Has been cancelled

Package alex/awgen (offline, stateless Rust CLI for AmneziaWG configs) from
the upstream Gitea repository. Source is fetched with fetchFromGitea and
pinned to the v0.1 tag; the cargo dependency hash is pinned as well.

Also list the package in the README package table and project tree.
This commit is contained in:
2026-10-20 21:55:24 +03:00
parent 5310b47924
commit eefef7cce2
3 changed files with 45 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
{
lib,
rustPlatform,
fetchFromGitea,
}:
rustPlatform.buildRustPackage rec {
pname = "awgen";
version = "0.1";
src = fetchFromGitea {
domain = "git.millerson.name";
owner = "alex";
repo = "awgen";
rev = "v${version}";
hash = "sha256-PTwOswKI08/oHTKZDZOQfPPBXhNNxot2+tpnUweZ8gg=";
};
cargoHash = "sha256-/ENWhp2SpcZcTk55xXsm/IHfyj86aNzH6PAb9VBtAX4=";
passthru = {
category = "Networking";
updateScript = [
"nix-update"
"--flake"
"awgen"
];
};
meta = with lib; {
description = "Offline, stateless CLI for AmneziaWG configurations — harmonises native .conf and vpn:// inputs, generates client participants and tunnels, and analyses obfuscation";
homepage = "https://git.millerson.name/alex/awgen";
changelog = "https://git.millerson.name/alex/awgen/commits/tag/v${version}";
license = licenses.mit;
mainProgram = "awgen";
platforms = platforms.unix;
};
}