mediawiki: 1.42.4 -> 1.43.0 (#369641)
[NixPkgs.git] / pkgs / by-name / ca / captive-browser / package.nix
blob14e5ade875c80c9419ea4a198d2737f359a5b097
2   lib,
3   fetchFromGitHub,
4   buildGoModule,
5   fetchpatch,
6 }:
8 buildGoModule rec {
9   pname = "captive-browser";
10   version = "unstable-2021-08-01";
12   src = fetchFromGitHub {
13     owner = "FiloSottile";
14     repo = "captive-browser";
15     rev = "9c707dc32afc6e4146e19b43a3406329c64b6f3c";
16     sha256 = "sha256-65lPo5tpE0M/VyyvlzlcVSuHX4AhhVuqK0UF4BIAH/Y=";
17   };
19   vendorHash = "sha256-2MFdQ2GIDAdLPuwAiGPO9wU3mm2BDXdyTwoVA1xVlcQ=";
20   deleteVendor = true;
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   ];
30   ldflags = [
31     "-s"
32     "-w"
33   ];
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   };