2020-08-07 14:26:36 +02:00
|
|
|
{ pkgs, lib, rustPlatform, fetchFromGitLab, wireguard-tools, makeWrapper }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wg-bond";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "cab404";
|
|
|
|
repo = "wg-bond";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256:04k0maxy39k7qzcsqsv1byddsmjszmnyjffrf22nzbvml83p3l0y";
|
|
|
|
};
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "1nlzhkhk1y0jhj6n3wn4dm783ldsxn7dk0d2xjx6ylczf9z3gp12";
|
2020-08-07 14:26:36 +02:00
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-08-07 14:26:36 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|