bonfire/packages/spoofdpi/default.nix

36 lines
787 B
Nix
Raw Normal View History

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