1 { lib, fetchFromGitHub, buildGoModule, fetchpatch }:
4 pname = "captive-browser";
5 version = "unstable-2021-08-01";
7 src = fetchFromGitHub {
9 repo = "captive-browser";
10 rev = "9c707dc32afc6e4146e19b43a3406329c64b6f3c";
11 sha256 = "sha256-65lPo5tpE0M/VyyvlzlcVSuHX4AhhVuqK0UF4BIAH/Y=";
14 vendorHash = "sha256-2MFdQ2GIDAdLPuwAiGPO9wU3mm2BDXdyTwoVA1xVlcQ=";
18 # Add go modules support
20 url = "https://github.com/FiloSottile/captive-browser/commit/ef50837778ef4eaf38b19887e79c8b6fa830c342.patch";
21 hash = "sha256-w+jDFeO94pMu4ir+G5CzqYlXxYOm9+YfyzbU3sbTyiY=";
25 ldflags = [ "-s" "-w" ];
28 description = "Dedicated Chrome instance to log into captive portals without messing with DNS settings";
29 homepage = "https://blog.filippo.io/captive-browser";
30 license = licenses.mit;
31 maintainers = with maintainers; [ ma27 ];