depot/pkgs/by-name/op/opengfw/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

37 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
let
pname = "opengfw";
version = "0.4.1";
in
buildGoModule {
inherit pname version;
CGO_ENABLED = 0;
vendorHash = "sha256-F8jTvgxOhOGVtl6B8u0xAIvjNwVjBtvAhApzjIgykpY=";
src = fetchFromGitHub {
owner = "apernet";
repo = "opengfw";
rev = "refs/tags/v${version}";
hash = "sha256-6PFfsPfLzzeaImcteX9u/k5pwe3cvSQwT90TCizA3gI=";
};
meta = {
mainProgram = "OpenGFW";
description = "Flexible, easy-to-use, open source implementation of GFW on Linux";
longDescription = ''
OpenGFW is your very own DIY Great Firewall of China, available as a flexible,
easy-to-use open source program on Linux. Why let the powers that be have all the fun?
It's time to give power to the people and democratize censorship.
Bring the thrill of cyber-sovereignty right into your home router
and start filtering like a pro - you too can play Big Brother.
'';
homepage = "https://gfw.dev/";
license = lib.licenses.mpl20;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ eum3l ];
};
}