diff options
author | Vladimir Serov <me@cab404.ru> | 2020-08-07 15:26:36 +0300 |
---|---|---|
committer | Vladimir Serov <me@cab404.ru> | 2020-08-08 20:46:22 +0300 |
commit | d9f98bbe3c4082a26ea5c4c507aba0d790a8255f (patch) | |
tree | b4908296ca978f9dc3c1e3f1a0ac2db9981c7453 /pkgs/applications/networking/wg-bond | |
parent | cecc4ce36184fb1051ac6924ebf5d65b5e0668aa (diff) |
wg-bond: init at 0.2.0
Co-authored-by: Benjamin Hipple <bhipple@protonmail.com>
Diffstat (limited to 'pkgs/applications/networking/wg-bond')
-rw-r--r-- | pkgs/applications/networking/wg-bond/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/networking/wg-bond/default.nix b/pkgs/applications/networking/wg-bond/default.nix new file mode 100644 index 0000000000000..67a05a8972f68 --- /dev/null +++ b/pkgs/applications/networking/wg-bond/default.nix @@ -0,0 +1,30 @@ +{ 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"; + }; + + cargoSha256 = "1v2az0v6l8mqryvq3898hm7bpvqdd2c4kpv6ck7932jfjyna512k"; + + buildInputs = [ makeWrapper ]; + 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 ]; + platforms = platforms.all; + }; +} |