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 = "fakesip";
14 version = "0.9.1";
15
16 src = fetchFromGitHub {
17 owner = "MikeWang000000";
18 repo = "FakeSIP";
19 tag = finalAttrs.version;
20 hash = "sha256-iY9EAvy4E6aM59B1sn9d0xoUMdOsX75LslVzB/Cf5XM=";
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 = "Disguise your UDP traffic as SIP protocol to evade DPI detection";
43 homepage = "https://github.com/MikeWang000000/FakeSIP";
44 changelog = "https://github.com/MikeWang000000/FakeSIP/releases/tag/${finalAttrs.src.tag}";
45 license = lib.licenses.gpl3Plus;
46 maintainers = with lib.maintainers; [ moraxyc ];
47 mainProgram = "fakesip";
48 platforms = lib.platforms.linux;
49 };
50})