nixpkgs/pkgs/tools/networking/n2n/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
708 B
Nix
Raw Normal View History

2023-06-19 14:33:45 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libcap }:
2021-07-11 08:20:59 +00:00
stdenv.mkDerivation rec {
pname = "n2n";
2022-01-27 17:25:18 +00:00
version = "3.0";
2021-07-11 08:20:59 +00:00
src = fetchFromGitHub {
owner = "ntop";
repo = "n2n";
rev = version;
2022-01-27 17:25:18 +00:00
hash = "sha256-OXmcc6r+fTHs/tDNF3akSsynB/bVRKB6Fl5oYxmu+E0=";
2021-07-11 08:20:59 +00:00
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
2023-06-19 14:33:45 +00:00
buildInputs = [
libcap
];
2021-07-11 08:20:59 +00:00
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;
2023-02-05 14:05:51 +00:00
maintainers = with maintainers; [ malte-v ];
2021-07-11 08:20:59 +00:00
};
}