2024-07-27 06:49:29 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitLab, wireguard-tools, makeWrapper }:
|
2020-08-20 17:08:02 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wg-bond";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "cab404";
|
|
|
|
repo = "wg-bond";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256:04k0maxy39k7qzcsqsv1byddsmjszmnyjffrf22nzbvml83p3l0y";
|
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-Itw3fnKfUW+67KKB2Y7tutGBTm3E8mGNhBL4MOGEn9o=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-08-20 17:08:02 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/wg-bond --set PATH ${
|
|
|
|
lib.makeBinPath [ wireguard-tools ]
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wireguard configuration manager";
|
|
|
|
homepage = "https://gitlab.com/cab404/wg-bond";
|
|
|
|
changelog = "https://gitlab.com/cab404/wg-bond/-/releases#v${version}";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ cab404 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "wg-bond";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|