depot/third_party/nixpkgs/pkgs/tools/networking/n2n/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

36 lines
708 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libcap }:
stdenv.mkDerivation rec {
pname = "n2n";
version = "3.0";
src = fetchFromGitHub {
owner = "ntop";
repo = "n2n";
rev = version;
hash = "sha256-OXmcc6r+fTHs/tDNF3akSsynB/bVRKB6Fl5oYxmu+E0=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [
libcap
];
postPatch = ''
patchShebangs autogen.sh
'';
preAutoreconf = ''
./autogen.sh
'';
PREFIX = placeholder "out";
meta = with lib; {
description = "Peer-to-peer VPN";
homepage = "https://www.ntop.org/products/n2n/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ malte-v ];
};
}