Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 fetchpatch, 6}: 7 8buildGoModule { 9 pname = "captive-browser"; 10 version = "0-unstable-2021-08-01"; 11 12 src = fetchFromGitHub { 13 owner = "FiloSottile"; 14 repo = "captive-browser"; 15 rev = "9c707dc32afc6e4146e19b43a3406329c64b6f3c"; 16 sha256 = "sha256-65lPo5tpE0M/VyyvlzlcVSuHX4AhhVuqK0UF4BIAH/Y="; 17 }; 18 19 vendorHash = "sha256-2MFdQ2GIDAdLPuwAiGPO9wU3mm2BDXdyTwoVA1xVlcQ="; 20 deleteVendor = true; 21 22 patches = [ 23 # Add go modules support 24 (fetchpatch { 25 url = "https://github.com/FiloSottile/captive-browser/commit/ef50837778ef4eaf38b19887e79c8b6fa830c342.patch"; 26 hash = "sha256-w+jDFeO94pMu4ir+G5CzqYlXxYOm9+YfyzbU3sbTyiY="; 27 }) 28 ]; 29 30 ldflags = [ 31 "-s" 32 "-w" 33 ]; 34 35 meta = with lib; { 36 description = "Dedicated Chrome instance to log into captive portals without messing with DNS settings"; 37 homepage = "https://blog.filippo.io/captive-browser"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ ma27 ]; 40 }; 41}