@@ -0,0 +1,30 @@
1+{ pkgs, lib, rustPlatform, fetchFromGitLab, wireguard-tools, makeWrapper }:
2+rustPlatform.buildRustPackage rec {
3+ pname = "wg-bond";
4+ version = "0.2.0";
5+
6+ src = fetchFromGitLab {
7+ owner = "cab404";
8+ repo = "wg-bond";
9+ rev = "v${version}";
10+ hash = "sha256:04k0maxy39k7qzcsqsv1byddsmjszmnyjffrf22nzbvml83p3l0y";
11+ };
12+
13+ cargoSha256 = "1v2az0v6l8mqryvq3898hm7bpvqdd2c4kpv6ck7932jfjyna512k";
14+
15+ buildInputs = [ makeWrapper ];
16+ postInstall = ''
17+ wrapProgram $out/bin/wg-bond --set PATH ${
18+ lib.makeBinPath [ wireguard-tools ]
19+ }
20+ '';
21+
22+ meta = with lib; {
23+ description = "Wireguard configuration manager";
24+ homepage = "https://gitlab.com/cab404/wg-bond";
25+ changelog = "https://gitlab.com/cab404/wg-bond/-/releases#v${version}";
26+ license = licenses.gpl3Only;
27+ maintainers = with maintainers; [ cab404 ];
28+ platforms = platforms.all;
29+ };
30+}