nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 libnetfilter_queue,
6 libnfnetlink,
7 libmnl,
8 versionCheckHook,
9 nix-update-script,
10}:
11
12stdenv.mkDerivation (finalAttrs: {
13 pname = "fakehttp";
14 version = "0.9.18";
15
16 src = fetchFromGitHub {
17 owner = "MikeWang000000";
18 repo = "FakeHTTP";
19 tag = finalAttrs.version;
20 hash = "sha256-XjWveBsRJq5iNpk3e9lmVKMoB3q5tr4OiNY+kYEqtEE=";
21 };
22
23 buildInputs = [
24 libnetfilter_queue
25 libnfnetlink
26 libmnl
27 ];
28
29 makeFlags = [
30 "CROSS_PREFIX=${stdenv.cc.targetPrefix}"
31 "VERSION=${finalAttrs.version}"
32 ];
33
34 installFlags = [ "PREFIX=$(out)" ];
35
36 nativeInstallCheckInputs = [ versionCheckHook ];
37 doInstallCheck = true;
38
39 passthru.updateScript = nix-update-script { };
40
41 meta = {
42 description = "Obfuscate all your TCP connections into HTTP protocol";
43 homepage = "https://github.com/MikeWang000000/FakeHTTP";
44 changelog = "https://github.com/MikeWang000000/FakeHTTP/releases/tag/${finalAttrs.src.tag}";
45 license = lib.licenses.gpl3Plus;
46 maintainers = with lib.maintainers; [ moraxyc ];
47 mainProgram = "fakehttp";
48 platforms = lib.platforms.linux;
49 };
50})