Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
boost,
|
|
zlib,
|
|
openssl,
|
|
upnpSupport ? true,
|
|
miniupnpc,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "i2pd";
|
|
version = "2.58.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PurpleI2P";
|
|
repo = "i2pd";
|
|
tag = version;
|
|
hash = "sha256-moUcivW3YIE2SvjS7rCXTjeCKUW/u/NXWH3VmJ9x6jg=";
|
|
};
|
|
|
|
postPatch = lib.optionalString (!stdenv.hostPlatform.isx86) ''
|
|
substituteInPlace Makefile.osx \
|
|
--replace-fail "-msse" ""
|
|
'';
|
|
|
|
buildInputs = [
|
|
boost
|
|
zlib
|
|
openssl
|
|
]
|
|
++ lib.optional upnpSupport miniupnpc;
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
makeFlags = [
|
|
"USE_UPNP=${if upnpSupport then "yes" else "no"}"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
install -D i2pd $out/bin/i2pd
|
|
install --mode=444 -D 'contrib/i2pd.service' "$out/etc/systemd/system/i2pd.service"
|
|
installManPage 'debian/i2pd.1'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://i2pd.website";
|
|
description = "Minimal I2P router written in C++";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "i2pd";
|
|
};
|
|
}
|