Merge staging-next-22.05 into staging-22.05

This commit is contained in:
github-actions[bot]
2022-10-19 00:21:53 +00:00
committed by GitHub
6 changed files with 499 additions and 402 deletions

View File

@@ -0,0 +1,87 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.services.cachix-watch-store;
in
{
meta.maintainers = [ lib.maintainers.jfroche lib.maintainers.domenkozar ];
options.services.cachix-watch-store = {
enable = mkEnableOption (lib.mdDoc "Cachix Watch Store: https://docs.cachix.org");
cacheName = mkOption {
type = types.str;
description = lib.mdDoc "Cachix binary cache name";
};
cachixTokenFile = mkOption {
type = types.path;
description = lib.mdDoc ''
Required file that needs to contain the cachix auth token.
'';
};
compressionLevel = mkOption {
type = types.nullOr types.int;
description = lib.mdDoc "The compression level for XZ compression (between 0 and 9)";
default = null;
};
jobs = mkOption {
type = types.nullOr types.int;
description = lib.mdDoc "Number of threads used for pushing store paths";
default = null;
};
host = mkOption {
type = types.nullOr types.str;
default = null;
description = lib.mdDoc "Cachix host to connect to";
};
verbose = mkOption {
type = types.bool;
description = lib.mdDoc "Enable verbose output";
default = false;
};
package = mkOption {
type = types.package;
default = pkgs.cachix;
defaultText = literalExpression "pkgs.cachix";
description = lib.mdDoc "Cachix Client package to use.";
};
};
config = mkIf cfg.enable {
systemd.services.cachix-watch-store-agent = {
description = "Cachix watch store Agent";
after = [ "network-online.target" ];
path = [ config.nix.package ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
# we don't want to kill children processes as those are deployments
KillMode = "process";
Restart = "on-failure";
DynamicUser = true;
LoadCredential = [
"cachix-token:${toString cfg.cachixTokenFile}"
];
};
script =
let
command = [ "${cfg.package}/bin/cachix" ]
++ (lib.optional cfg.verbose "--verbose") ++ (lib.optionals (cfg.host != null) [ "--host" cfg.host ])
++ [ "watch-store" ] ++ (lib.optionals (cfg.compressionLevel != null) [ "--compression-level" (toString cfg.compressionLevel) ])
++ (lib.optionals (cfg.jobs != null) [ "--jobs" (toString cfg.jobs) ]) ++ [ cfg.cacheName ];
in
''
export CACHIX_AUTH_TOKEN="$(<"$CREDENTIALS_DIRECTORY/cachix-token")"
${lib.escapeShellArgs command}
'';
};
};
}

View File

@@ -1967,8 +1967,8 @@ let
mktplcRef = {
name = "code-spell-checker";
publisher = "streetsidesoftware";
version = "2.1.7";
sha256 = "sha256-C0jYDIDBK1JH8eFaFmCUilBXCbU5y2TRF3OZAw9ijoY=";
version = "2.10.1";
sha256 = "sha256-FeYkSML6QYtuIHIbAovOqlPwkKfNkHr7IdMCWwkynQ0=";
};
meta = with lib; {
changelog = "https://marketplace.visualstudio.com/items/streetsidesoftware.code-spell-checker/changelog";

View File

@@ -3,12 +3,21 @@
rec {
firefox = buildMozillaMach rec {
pname = "firefox";
version = "105.0.3";
version = "106.0";
src = fetchurl {
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
sha512 = "8a60ed26f3a6e3fafb1eb13a8daf067056d011a17835310f8ce814b86121014796e790f611058aea75334428529028a2e29ba81d9d2653e09517dc7c3cf48e76";
sha512 = "30ced2fff818858267eaab23974f6962c5d39433ce8e26507589535fc9348f00cf5e45b90997dfb6e2361b70900547fdb0e70d741127cc6705089ea585ea2296";
};
# This patch could be applied anywhere (just rebuild, no effect)
extraPatches = lib.optionals stdenv.isAarch64 [
(fetchpatch { # https://bugzilla.mozilla.org/show_bug.cgi?id=1791275
name = "no-sysctl-aarch64.patch";
url = "https://hg.mozilla.org/mozilla-central/raw-rev/0efaf5a00aaceeed679885e4cd393bd9a5fcd0ff";
hash = "sha256-wS/KufeLFxCexQalGGNg8+vnQhzDiL79OLt8FtL/JJ8=";
})
];
meta = {
description = "A web browser built from Firefox source tree";
homepage = "http://www.mozilla.com/en-US/firefox/";
@@ -28,11 +37,11 @@ rec {
firefox-esr-102 = buildMozillaMach rec {
pname = "firefox-esr";
version = "102.3.0esr";
version = "102.4.0esr";
applicationName = "Mozilla Firefox ESR";
src = fetchurl {
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
sha512 = "35357791f4de8b474780083a22fb52b7846b8012cbf01403f2b9526151d11c196ce0f9fba8e0f16d8235d7259af6fba1bc3acbb5b7e79129a28f390467aa7556";
sha512 = "30d9e6ef04fd86516e2cea3c797ec99af4c96b08576bb3409c0026da4fd1218167f89a007109e1fa4e2571f98f2dbe5ab58a26473533d45301f75b90ec3dbf28";
};
meta = {

View File

@@ -11,7 +11,7 @@
let
pname = "dump_syms";
version = "1.0.1";
version = "2.0.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
@@ -20,10 +20,10 @@ rustPlatform.buildRustPackage {
owner = "mozilla";
repo = pname;
rev = "v${version}";
hash = "sha256-2OSni0PA0LfamOqdFQTRLgolF55z13owgFrqYYHuNX0=";
hash = "sha256-ei/ORKKoh9rQg4xZ5j76qaplw1PyEV7ABkyL7e8WIlQ=";
};
cargoSha256 = "sha256-ggJWweulbSJ8Femzv7uHLcrn1HTenw79AYIydE6y4ag=";
cargoSha256 = "sha256-t3AQW0j/L/qIUx6RJKqf+Fv/2BNWkWmTc0PDNFlZeaQ=";
nativeBuildInputs = [
pkg-config

View File

@@ -75,5 +75,6 @@ mkDerivation rec {
changelog = "https://github.com/PolyMC/PolyMC/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ cleverca22 starcraft66 ];
knownVulnerabilities = [ "OVE-20221017-0001" ];
};
}