nixpkgs/pkgs/by-name/lo/lokinet/package.nix

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

77 lines
1.5 KiB
Nix
Raw Normal View History

2022-05-31 05:54:25 +00:00
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
2022-05-31 05:54:25 +00:00
, cmake
, libevent
, libsodium
, libuv
, nlohmann_json
, pkg-config
2022-11-15 13:42:29 +00:00
, spdlog
2023-08-27 06:02:15 +00:00
, fmt_9
2022-05-31 05:54:25 +00:00
, sqlite
, systemd
, unbound
, zeromq
}:
2023-08-27 06:02:15 +00:00
let
# Upstream has received reports of incompatibilities with fmt, and other
# dependencies, see: https://github.com/oxen-io/lokinet/issues/2200.
spdlog' = spdlog.override {
fmt = fmt_9;
};
2022-05-31 05:54:25 +00:00
2023-08-27 06:02:15 +00:00
in stdenv.mkDerivation rec {
2022-05-31 05:54:25 +00:00
pname = "lokinet";
2022-12-04 08:22:56 +00:00
version = "0.9.11";
2022-05-31 05:54:25 +00:00
src = fetchFromGitHub {
owner = "oxen-io";
repo = "lokinet";
2022-12-04 12:22:05 +00:00
rev = "refs/tags/v${version}";
2022-05-31 05:54:25 +00:00
fetchSubmodules = true;
2022-12-04 12:22:05 +00:00
hash = "sha256-aVFLDGTbRUOw2XWDpl+ojwHBG7c0miGeoKMLwMpqVtg=";
2022-05-31 05:54:25 +00:00
};
patches = [
# Fix gcc-13 compatibility:
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/oxen-io/lokinet/commit/89c5c73be48788ba14a55cb6d82d57208b487eaf.patch";
hash = "sha256-yCy4WXs6p67TMe4uPNAuQyJvtP3IbpJS81AeomNu9lU=";
})
];
2022-05-31 05:54:25 +00:00
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libevent
libuv
libsodium
nlohmann_json
2023-08-27 06:02:15 +00:00
spdlog'
2022-05-31 05:54:25 +00:00
sqlite
systemd
unbound
zeromq
];
cmakeFlags = [
"-DGIT_VERSION=v${version}"
"-DWITH_BOOTSTRAP=OFF" # we provide bootstrap files manually
"-DWITH_SETCAP=OFF"
];
meta = with lib; {
description = "Anonymous, decentralized and IP based overlay network for the internet";
homepage = "https://lokinet.org/";
2022-12-04 12:22:05 +00:00
changelog = "https://github.com/oxen-io/lokinet/releases/tag/v${version}";
2022-05-31 05:54:25 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ wyndon ];
};
}