mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-01 13:14:42 +00:00
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libnetfilter_queue,
|
|
libnfnetlink,
|
|
libmnl,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "fakehttp";
|
|
version = "0.9.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MikeWang000000";
|
|
repo = "FakeHTTP";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-XjWveBsRJq5iNpk3e9lmVKMoB3q5tr4OiNY+kYEqtEE=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libnetfilter_queue
|
|
libnfnetlink
|
|
libmnl
|
|
];
|
|
|
|
makeFlags = [
|
|
"CROSS_PREFIX=${stdenv.cc.targetPrefix}"
|
|
"VERSION=${finalAttrs.version}"
|
|
];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Obfuscate all your TCP connections into HTTP protocol";
|
|
homepage = "https://github.com/MikeWang000000/FakeHTTP";
|
|
changelog = "https://github.com/MikeWang000000/FakeHTTP/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ moraxyc ];
|
|
mainProgram = "fakehttp";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|