Unverified Commit 9c1f16e3 authored by nixpkgs-ci[bot]'s avatar nixpkgs-ci[bot] Committed by GitHub
Browse files

Merge master into staging-next

parents 5fccfa89 7521b913
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1093,6 +1093,13 @@
    githubId = 1078000;
    name = "Alejandro Sánchez Medina";
  };
  alejo7797 = {
    email = "alex@epelde.net";
    matrix = "@alex:epelde.net";
    github = "alejo7797";
    githubId = 17302493;
    name = "Alex Epelde";
  };
  aleksana = {
    email = "me@aleksana.moe";
    github = "Aleksanaa";
+1 −0
Original line number Diff line number Diff line
@@ -1243,6 +1243,7 @@ with lib.maintainers;
  swift = {
    members = [
      dduan
      samasaur
      stephank
      trepetti
      trundle
+19 −22
Original line number Diff line number Diff line
@@ -5,24 +5,21 @@
  ...
}:

with lib;

let
  cfg = config.services.tinyproxy;
  mkValueStringTinyproxy =
    with lib;
    v:
    if true == v then
      "yes"
    else if false == v then
      "no"
    else if types.path.check v then
    else if lib.types.path.check v then
      ''"${v}"''
    else
      generators.mkValueStringDefault { } v;
      lib.generators.mkValueStringDefault { } v;
  mkKeyValueTinyproxy =
    {
      mkValueString ? mkValueStringDefault { },
      mkValueString ? lib.mkValueStringDefault { },
    }:
    sep: k: v:
    if null == v then "" else "${lib.strings.escape [ sep ] k}${sep}${mkValueString v}";
@@ -42,12 +39,12 @@ in

  options = {
    services.tinyproxy = {
      enable = mkEnableOption "Tinyproxy daemon";
      package = mkPackageOption pkgs "tinyproxy" { };
      settings = mkOption {
      enable = lib.mkEnableOption "Tinyproxy daemon";
      package = lib.mkPackageOption pkgs "tinyproxy" { };
      settings = lib.mkOption {
        description = "Configuration for [tinyproxy](https://tinyproxy.github.io/).";
        default = { };
        example = literalExpression ''
        example = lib.literalExpression ''
          {
            Port 8888;
            Listen 127.0.0.1;
@@ -57,34 +54,34 @@ in
            ReversePath = '"/example/" "http://www.example.com/"';
          }
        '';
        type = types.submodule (
        type = lib.types.submodule (
          { name, ... }:
          {
            freeformType = settingsFormat.type;
            options = {
              Listen = mkOption {
                type = types.str;
              Listen = lib.mkOption {
                type = lib.types.nullOr lib.types.str;
                default = "127.0.0.1";
                description = ''
                  Specify which address to listen to.
                '';
              };
              Port = mkOption {
                type = types.port;
              Port = lib.mkOption {
                type = lib.types.port;
                default = 8888;
                description = ''
                  Specify which port to listen to.
                '';
              };
              Anonymous = mkOption {
                type = types.listOf types.str;
              Anonymous = lib.mkOption {
                type = lib.types.listOf lib.types.str;
                default = [ ];
                description = ''
                  If an `Anonymous` keyword is present, then anonymous proxying is enabled. The headers listed with `Anonymous` are allowed through, while all others are denied. If no Anonymous keyword is present, then all headers are allowed through. You must include quotes around the headers.
                '';
              };
              Filter = mkOption {
                type = types.nullOr types.path;
              Filter = lib.mkOption {
                type = lib.types.nullOr lib.types.path;
                default = null;
                description = ''
                  Tinyproxy supports filtering of web sites based on URLs or domains. This option specifies the location of the file containing the filter rules, one rule per line.
@@ -96,7 +93,7 @@ in
      };
    };
  };
  config = mkIf cfg.enable {
  config = lib.mkIf cfg.enable {
    systemd.services.tinyproxy = {
      description = "TinyProxy daemon";
      after = [ "network.target" ];
@@ -105,7 +102,7 @@ in
        User = "tinyproxy";
        Group = "tinyproxy";
        Type = "simple";
        ExecStart = "${getExe cfg.package} -d -c ${configFile}";
        ExecStart = "${lib.getExe cfg.package} -d -c ${configFile}";
        ExecReload = "${pkgs.coreutils}/bin/kill -SIGHUP $MAINPID";
        KillSignal = "SIGINT";
        TimeoutStopSec = "30s";
@@ -119,5 +116,5 @@ in
    };
    users.groups.tinyproxy = { };
  };
  meta.maintainers = with maintainers; [ tcheronneau ];
  meta.maintainers = with lib.maintainers; [ tcheronneau ];
}
+3 −3
Original line number Diff line number Diff line
@@ -18,18 +18,18 @@
  nix-update-script,
}:
let
  version = "1.3.19";
  version = "1.3.20";
  src = fetchFromGitHub {
    owner = "michaelb";
    repo = "sniprun";
    tag = "v${version}";
    hash = "sha256-a2hEV83NOnt+9BwDk94Ns+rIC9DeHFdu2dZG1XPtdnY=";
    hash = "sha256-z8viNr1TBGfWqgjfZKYJTEa1/KytKBmLbqcQrAiTZyc=";
  };
  sniprun-bin = rustPlatform.buildRustPackage {
    pname = "sniprun-bin";
    inherit version src;

    cargoHash = "sha256-Ps9Ugq8ISbuXO3Dxo1WQUVPCxf24oSHvem2Xg0sIgOQ=";
    cargoHash = "sha256-Ki1IFQzG4rOakGX5HsYWL8GeQ53dN7WAIZ113+bwcvI=";

    nativeBuildInputs = [ makeWrapper ];

+4 −4
Original line number Diff line number Diff line
@@ -1949,8 +1949,8 @@ let
        mktplcRef = {
          publisher = "github";
          name = "vscode-pull-request-github";
          version = "0.118.2";
          hash = "sha256-DB1O6Rpwo1VfwddgiUFFbOoOpxxTOLJ/JEQExBpK5fU=";
          version = "0.120.0";
          hash = "sha256-zBc6xLUKueT7hgyjZ9b/UHG7kbvUmWLEB0bngXZ8Rd4=";
        };
        meta = {
          license = lib.licenses.mit;
@@ -4510,8 +4510,8 @@ let
        mktplcRef = {
          name = "tabnine-vscode";
          publisher = "tabnine";
          version = "3.317.0";
          hash = "sha256-xXZfuZ9ZqACzoTpRkSAXHczJ06A0CC5WIic/I1uoLuI=";
          version = "3.320.0";
          hash = "sha256-CFkLAMSMWGSHQwD0diSTn3z+U95Y4uCSnHNMTOj+iAo=";
        };
        meta = {
          license = lib.licenses.mit;
Loading