From 739324df92ab05db6627c47f5e67cf55441f7370 Mon Sep 17 00:00:00 2001 From: xeals Date: Wed, 24 Jul 2024 21:00:30 +1000 Subject: [PATCH] wg2nd: init --- pkgs/by-name/wg/wg2nd/package.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/by-name/wg/wg2nd/package.nix diff --git a/pkgs/by-name/wg/wg2nd/package.nix b/pkgs/by-name/wg/wg2nd/package.nix new file mode 100644 index 0000000..4523707 --- /dev/null +++ b/pkgs/by-name/wg/wg2nd/package.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, fetchFromGitHub +, libcap +}: stdenv.mkDerivation { + pname = "wg2nd"; + version = "20240605.23a3710"; + src = fetchFromGitHub { + owner = "flu0r1ne"; + repo = "wg2nd"; + rev = "23a37100f121edd0c1291c4a78901662eae5d58b"; + hash = "sha256-XY19Vicg8l/2stlWj1QqJt0pJOi/kueQpBufVlLJVxk="; + }; + + buildInputs = [ libcap ]; + + installPhase = '' + PREFIX=$out BINDIR=/bin make install + ''; + + meta = { + description = "WireGuard to systemd-networkd Configuration Converter"; + homepage = "https://git.flu0r1ine.net/wg2nd/about"; + license = [ lib.licenses.gpl2Only lib.licenses.mit ]; + platforms = lib.platforms.linux; + }; +}