{ lib, rustPlatform, fetchFromGitea, }: rustPlatform.buildRustPackage rec { pname = "awgen"; version = "0.3.2"; src = fetchFromGitea { domain = "git.millerson.name"; owner = "alex"; repo = "awgen"; rev = "v${version}"; hash = "sha256-I1O91iir5mepW3EWN9PTWmhJXwLXpTKSQwTunEnUjC8="; }; cargoHash = "sha256-RsOj3RbBybuNKMBtswsl/1cN5YKj+cCFu6ZtTbVRmG8="; 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; }; }