2023-08-04 22:07:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wg-netmanager";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "0.5.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gin66";
|
|
|
|
repo = "wg_netmanager";
|
|
|
|
rev = "wg_netmanager-v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-Mr4+TW1yOePEHa7puz6mTRJ514LGQeiEwPW3NKupV/M=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-cOxkWMFPVmi+/BQWIvExzX5LDyC7C8kaTf5dGwfXj+s=";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
# Test 01 tries to create a wireguard interface, which requires sudo.
|
|
|
|
doCheck = true;
|
2022-10-30 15:09:59 +00:00
|
|
|
checkFlags = [ "--skip" "device" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wireguard network manager";
|
2022-03-05 16:20:37 +00:00
|
|
|
longDescription = ''
|
|
|
|
Wireguard network manager, written in rust, simplifies the setup of wireguard nodes,
|
|
|
|
identifies short connections between nodes residing in the same subnet,
|
|
|
|
identifies unreachable aka dead nodes and maintains the routes between all nodes automatically.
|
|
|
|
To achieve this, wireguard network manager needs to be running on each node.
|
|
|
|
'';
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/gin66/wg_netmanager";
|
|
|
|
license = with licenses; [ mit asl20 bsd3 mpl20 ];
|
|
|
|
maintainers = with maintainers; [ gin66 ];
|
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "wg_netmanager";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|