new: packages: spoof-dpi

This commit is contained in:
L-Nafaryus 2023-12-20 11:41:51 +05:00
parent 16c0a2e077
commit e34f8657af
No known key found for this signature in database
GPG Key ID: C76D8DCD2727DBB7
3 changed files with 36 additions and 0 deletions

View File

@ -12,4 +12,6 @@ in forAllSystems(system: let
example = blib.mkApp { drv = bpkgs.example; name = "hello-nix"; }; example = blib.mkApp { drv = bpkgs.example; name = "hello-nix"; };
netgen = blib.mkApp { drv = bpkgs.netgen; }; netgen = blib.mkApp { drv = bpkgs.netgen; };
spoof-dpi = blib.mkApp { drv = bpkgs.spoof-dpi; };
}) })

View File

@ -14,4 +14,6 @@ in forAllSystems(system: let pkgs = nixpkgsFor.${system}; in {
dearpygui = pkgs.callPackage ./dearpygui {}; dearpygui = pkgs.callPackage ./dearpygui {};
openfoam = pkgs.callPackage ./openfoam {}; openfoam = pkgs.callPackage ./openfoam {};
spoof-dpi = pkgs.callPackage ./spoof-dpi {};
}) })

View File

@ -0,0 +1,32 @@
{
lib, pkgs,
version ? "0.8",
hash ? "sha256-kPCdOZl4m7KBb970TjJokXorKfnCvuV5Uq7lFQIh1z8=",
vendorHash ? "sha256-ib9xRklkLfrDCuLf7zDkJE8lJiNiUMPZ01MDxvqho6o=", ...
}:
pkgs.buildGoModule {
pname = "spoof-dpi";
inherit version;
src = pkgs.fetchFromGitHub {
owner = "xzvc";
repo = "SpoofDPI";
rev = version;
hash = "sha256-kPCdOZl4m7KBb970TjJokXorKfnCvuV5Uq7lFQIh1z8=";
};
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";
};
}