2023-12-20 11:41:51 +05:00
|
|
|
{
|
|
|
|
lib, pkgs,
|
|
|
|
version ? "0.8",
|
|
|
|
hash ? "sha256-kPCdOZl4m7KBb970TjJokXorKfnCvuV5Uq7lFQIh1z8=",
|
|
|
|
vendorHash ? "sha256-ib9xRklkLfrDCuLf7zDkJE8lJiNiUMPZ01MDxvqho6o=", ...
|
|
|
|
}:
|
|
|
|
pkgs.buildGoModule {
|
2023-12-26 15:16:21 +05:00
|
|
|
pname = "spoofdpi";
|
2023-12-20 11:41:51 +05:00
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
2023-12-26 15:16:21 +05:00
|
|
|
owner = "xvzc";
|
2023-12-20 11:41:51 +05:00
|
|
|
repo = "SpoofDPI";
|
|
|
|
rev = version;
|
2023-12-26 15:16:21 +05:00
|
|
|
hash = hash;
|
2023-12-20 11:41:51 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit vendorHash;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
ldflags = ["-s" "-w" "-X main.version=${version}" "-X main.builtBy=nixpkgs"];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/xvzc/SpoofDPI";
|
|
|
|
description = "A simple and fast anti-censorship tool written in Go";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [];
|
|
|
|
broken = false;
|
|
|
|
mainProgram = "spoof-dpi";
|
|
|
|
};
|
|
|
|
}
|