mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
bepass: init at 1.6.2
This commit is contained in:
parent
6074e65d28
commit
fe8dc5d45a
61
pkgs/by-name/be/bepass/package.nix
Normal file
61
pkgs/by-name/be/bepass/package.nix
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, enableGUI ? false # upstream working in progress
|
||||||
|
, pkg-config
|
||||||
|
, glfw
|
||||||
|
, xorg
|
||||||
|
, libXcursor
|
||||||
|
, libXrandr
|
||||||
|
, libXinerama
|
||||||
|
, xinput
|
||||||
|
, libXi
|
||||||
|
, libXxf86vm
|
||||||
|
}:
|
||||||
|
buildGoModule rec{
|
||||||
|
pname = "bepass";
|
||||||
|
version = "1.6.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "bepass-org";
|
||||||
|
repo = "bepass";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-ruOhPWNs1WWM3r6X+6ch0HoDCu/a+IkBQiCr0Wh6yS8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-SiggDy6vc19yIw15g45yjl8gscE91zUoR6woECbAtR0=";
|
||||||
|
|
||||||
|
subPackages = [
|
||||||
|
"cmd/cli"
|
||||||
|
];
|
||||||
|
proxyVendor = true;
|
||||||
|
nativeBuildInputs = lib.optionals enableGUI [ pkg-config ];
|
||||||
|
buildInputs = lib.optionals enableGUI [
|
||||||
|
glfw
|
||||||
|
xorg.libXft
|
||||||
|
libXcursor
|
||||||
|
libXrandr
|
||||||
|
libXinerama
|
||||||
|
libXi
|
||||||
|
xinput
|
||||||
|
libXxf86vm
|
||||||
|
];
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/cli $out/bin/bepass
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/bepass-org/bepass";
|
||||||
|
description = "A simple DPI bypass tool written in go";
|
||||||
|
license = licenses.mit;
|
||||||
|
mainProgram = "bepass";
|
||||||
|
maintainers = with maintainers; [ oluceps ];
|
||||||
|
broken = enableGUI;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user