c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
62 lines
2.1 KiB
Nix
62 lines
2.1 KiB
Nix
{ lib, stdenv, go, fetchurl, redo-apenwarr, curl, perl, genericUpdater
|
|
, writeShellScript, nixosTests, cfgPath ? "/etc/nncp.hjson" }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nncp";
|
|
version = "8.8.3";
|
|
outputs = [ "out" "doc" "info" ];
|
|
|
|
src = fetchurl {
|
|
url = "http://www.nncpgo.org/download/${pname}-${version}.tar.xz";
|
|
hash = "sha256-IldQCEdH6XDYK+DW5lB/5HFFFGuq1nDkCwEaVo7vIvE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ go redo-apenwarr ];
|
|
|
|
# Build parameters
|
|
CFGPATH = cfgPath;
|
|
SENDMAIL = "sendmail";
|
|
|
|
preConfigure = "export GOCACHE=$NIX_BUILD_TOP/gocache";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
export PREFIX=$out
|
|
rm -f INSTALL # work around case insensitivity
|
|
redo install
|
|
runHook postInstall
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.updateScript = genericUpdater {
|
|
versionLister = writeShellScript "nncp-versionLister" ''
|
|
${curl}/bin/curl -s ${meta.downloadPage} | ${perl}/bin/perl -lne 'print $1 if /Release.*>([0-9.]+)</'
|
|
'';
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Secure UUCP-like store-and-forward exchanging";
|
|
longDescription = ''
|
|
This utilities are intended to help build up small size (dozens of
|
|
nodes) ad-hoc friend-to-friend (F2F) statically routed darknet
|
|
delay-tolerant networks for fire-and-forget secure reliable files,
|
|
file requests, Internet mail and commands transmission. All
|
|
packets are integrity checked, end-to-end encrypted, explicitly
|
|
authenticated by known participants public keys. Onion encryption
|
|
is applied to relayed packets. Each node acts both as a client and
|
|
server, can use push and poll behaviour model.
|
|
|
|
Out-of-box offline sneakernet/floppynet, dead drops, sequential
|
|
and append-only CD-ROM/tape storages, air-gapped computers
|
|
support. But online TCP daemon with full-duplex resumable data
|
|
transmission exists.
|
|
'';
|
|
homepage = "http://www.nncpgo.org/";
|
|
downloadPage = "http://www.nncpgo.org/Tarballs.html";
|
|
changelog = "http://www.nncpgo.org/News.html";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ ehmry woffs ];
|
|
};
|
|
}
|