new: packages: spoof-dpi
This commit is contained in:
parent
16c0a2e077
commit
e34f8657af
@ -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; };
|
||||||
})
|
})
|
||||||
|
@ -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 {};
|
||||||
})
|
})
|
||||||
|
32
packages/spoof-dpi/default.nix
Normal file
32
packages/spoof-dpi/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user