Merge release-21.05 into staging-next-21.05
This commit is contained in:
commit
29bcf81336
|
@ -27,6 +27,7 @@ in
|
|||
browser = mkOption {
|
||||
type = types.str;
|
||||
default = concatStringsSep " " [
|
||||
''env XDG_CONFIG_HOME="$PREV_CONFIG_HOME"''
|
||||
''${pkgs.chromium}/bin/chromium''
|
||||
''--user-data-dir=''${XDG_DATA_HOME:-$HOME/.local/share}/chromium-captive''
|
||||
''--proxy-server="socks5://$PROXY"''
|
||||
|
@ -111,6 +112,7 @@ in
|
|||
security.wrappers.captive-browser = {
|
||||
capabilities = "cap_net_raw+p";
|
||||
source = pkgs.writeShellScript "captive-browser" ''
|
||||
export PREV_CONFIG_HOME="$XDG_CONFIG_HOME"
|
||||
export XDG_CONFIG_HOME=${pkgs.writeTextDir "captive-browser.toml" ''
|
||||
browser = """${cfg.browser}"""
|
||||
dhcp-dns = """${cfg.dhcp-dns}"""
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
{ lib, fetchFromGitHub, buildGoPackage }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "captive-browser";
|
||||
version = "2019-04-16";
|
||||
goPackagePath = name;
|
||||
pname = "captive-browser";
|
||||
version = "2021-08-01";
|
||||
goPackagePath = pname;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FiloSottile";
|
||||
repo = "captive-browser";
|
||||
rev = "08450562e58bf9564ee98ad64ef7b2800e53338f";
|
||||
sha256 = "17icgjg7h0xm8g4yy38qjhsvlz9pmlmj9kydz01y2nyl0v02i648";
|
||||
rev = "9c707dc32afc6e4146e19b43a3406329c64b6f3c";
|
||||
sha256 = "sha256-65lPo5tpE0M/VyyvlzlcVSuHX4AhhVuqK0UF4BIAH/Y=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dedicated Chrome instance to log into captive portals without messing with DNS settings";
|
||||
homepage = "https://blog.filippo.io/captive-browser";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ volth ];
|
||||
maintainers = with maintainers; [ volth ma27 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
, pkg-config
|
||||
, gtk3
|
||||
, glib
|
||||
, glib-networking
|
||||
, wrapGAppsHook
|
||||
, itstool
|
||||
, gnupg
|
||||
|
@ -48,6 +49,7 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [
|
||||
gtk3
|
||||
glib
|
||||
glib-networking
|
||||
gcr
|
||||
gsettings-desktop-schemas
|
||||
gnupg
|
||||
|
|
Loading…
Reference in New Issue