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
49 lines
985 B
Nix
49 lines
985 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
libtoxcore,
|
|
python3,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tuntox";
|
|
version = "0.0.10.1-unstable-2025-08-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gjedeer";
|
|
repo = "tuntox";
|
|
rev = "4c9fc50da3f7d7b3d5e3981ede66819644e1af0d";
|
|
hash = "sha256-mqhCLIJOQfiSWi6iY56ZPQmXSLhdC/yX1KAItEz8sZo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libtoxcore
|
|
];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
buildFlags = [ "tuntox_nostatic" ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace-fail '$(shell git rev-parse HEAD)' "${finalAttrs.src.rev}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tunnel TCP connections over the Tox protocol";
|
|
mainProgram = "tuntox";
|
|
homepage = "https://github.com/gjedeer/tuntox";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [
|
|
willcohen
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|