Merge master into staging-next

This commit is contained in:
github-actions[bot] 2024-07-06 06:01:20 +00:00 committed by GitHub
commit 5a601bc241
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
24 changed files with 202 additions and 113 deletions

View File

@ -121,3 +121,17 @@ c759efa5e7f825913f9a69ef20f025f50f56dc4d
# python3Packages: format with nixfmt
59b1aef59071cae6e87859dc65de973d2cc595c0
# treewide description changes (#317959)
bf995e3641950f4183c1dd9010349263dfa0123b
755b915a158c9d588f08e9b08da9f7f3422070cc
f8c4a98e8e138e21353a2c33b90db3359f539b37
# vscode-extensions.*: format with nixfmt (RFC 166)
7bf9febfa6271012b1ef86647a3a06f06875fdcf
# remove uses of mdDoc (#303841)
1a24330f792c8625746d07d842290e6fd95ae6f9
acd0e3898feb321cb9a71a0fd376f1157d0f4553
1b28414d2886c57343864326dbb745a634d3e37d
6afb255d976f85f3359e4929abd6f5149c323a02

3
.github/CODEOWNERS vendored
View File

@ -108,6 +108,9 @@ nixos/modules/installer/tools/nix-fallback-paths.nix @raitobezarius
# NixOS QEMU virtualisation
/nixos/virtualisation/qemu-vm.nix @raitobezarius
# ACME
/nixos/modules/security/acme @arianvp @flokli @aanderse # no merge permission: @m1cr0man @emilazy
# Systemd
/nixos/modules/system/boot/systemd.nix @NixOS/systemd
/nixos/modules/system/boot/systemd @NixOS/systemd

View File

@ -1,34 +1,49 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) optionals mkOption mkEnableOption types mkIf elem concatStringsSep maintainers;
inherit (lib)
getOutput
maintainers
mkEnableOption
mkIf
mkOption
mkPackageOption
types
;
cfg = config.networking.stevenblack;
# needs to be in a specific order
activatedHosts = with cfg; [ ]
++ optionals (elem "fakenews" block) [ "fakenews" ]
++ optionals (elem "gambling" block) [ "gambling" ]
++ optionals (elem "porn" block) [ "porn" ]
++ optionals (elem "social" block) [ "social" ];
hostsPath = "${pkgs.stevenblack-blocklist}/alternates/" + concatStringsSep "-" activatedHosts + "/hosts";
in
{
options.networking.stevenblack = {
enable = mkEnableOption "the stevenblack hosts file blocklist";
package = mkPackageOption pkgs "stevenblack-blocklist" { };
block = mkOption {
type = types.listOf (types.enum [ "fakenews" "gambling" "porn" "social" ]);
type = types.listOf (
types.enum [
"fakenews"
"gambling"
"porn"
"social"
]
);
default = [ ];
description = "Additional blocklist extensions.";
};
};
config = mkIf cfg.enable {
networking.hostFiles = [ ]
++ optionals (activatedHosts != [ ]) [ hostsPath ]
++ optionals (activatedHosts == [ ]) [ "${pkgs.stevenblack-blocklist}/hosts" ];
networking.hostFiles = map (x: "${getOutput x cfg.package}/hosts") ([ "ads" ] ++ cfg.block);
};
meta.maintainers = [ maintainers.moni maintainers.artturin ];
meta.maintainers = with maintainers; [
moni
artturin
frontear
];
}

View File

@ -38,7 +38,7 @@
let
pname = "RStudio";
version = "2024.04.1+748";
version = "2024.04.2+764";
RSTUDIO_VERSION_MAJOR = lib.versions.major version;
RSTUDIO_VERSION_MINOR = lib.versions.minor version;
RSTUDIO_VERSION_PATCH = lib.versions.patch version;
@ -50,7 +50,7 @@ let
owner = "rstudio";
repo = "rstudio";
rev = "v" + version;
hash = "sha256-fzxbhN9NdM0E2rxezj2BMEZ8obUbX0Zw8haDNmfAkWs=";
hash = "sha256-j258eW1MYQrB6kkpjyolXdNuwQ3zSWv9so4q0QLsZuw=";
};
mathJaxSrc = fetchurl {
@ -134,39 +134,29 @@ in
./pandoc-nix-path.patch
./use-system-quarto.patch
./ignore-etc-os-release.patch
(fetchpatch {
name = "use-system-yaml-patch";
url = "https://github.com/rstudio/rstudio/commit/04de8ca8b83dcc7fee9fd65e6ef58c372489d5ef.patch";
hash = "sha256-FHSSOPsw6AAYBj/fgNT6idyxvRj3SG+fbla0UDjug1Y=";
})
];
postPatch = ''
substituteInPlace src/cpp/core/r_util/REnvironmentPosix.cpp --replace '@R@' ${R}
substituteInPlace src/cpp/CMakeLists.txt \
--replace 'SOCI_LIBRARY_DIR "/usr/lib"' 'SOCI_LIBRARY_DIR "${soci}/lib"'
substituteInPlace src/cpp/core/r_util/REnvironmentPosix.cpp --replace-fail '@R@' ${R}
substituteInPlace src/gwt/build.xml \
--replace '@node@' ${nodejs} \
--replace './lib/quarto' ${quartoSrc}
--replace-fail '@node@' ${nodejs} \
--replace-fail './lib/quarto' ${quartoSrc}
substituteInPlace src/cpp/conf/rsession-dev.conf \
--replace '@node@' ${nodejs}
--replace-fail '@node@' ${nodejs}
substituteInPlace src/cpp/core/libclang/LibClang.cpp \
--replace '@libclang@' ${llvmPackages.libclang.lib} \
--replace '@libclang.so@' ${llvmPackages.libclang.lib}/lib/libclang.so
--replace-fail '@libclang@' ${llvmPackages.libclang.lib} \
--replace-fail '@libclang.so@' ${llvmPackages.libclang.lib}/lib/libclang.so
substituteInPlace src/cpp/session/CMakeLists.txt \
--replace '@pandoc@' ${pandoc} \
--replace '@quarto@' ${quarto}
--replace-fail '@pandoc@' ${pandoc} \
--replace-fail '@quarto@' ${quarto}
substituteInPlace src/cpp/session/include/session/SessionConstants.hpp \
--replace '@pandoc@' ${pandoc}/bin \
--replace '@quarto@' ${quarto}
--replace-fail '@pandoc@' ${pandoc}/bin \
--replace-fail '@quarto@' ${quarto}
'';
hunspellDictionaries = with lib; filter isDerivation (unique (attrValues hunspellDicts));
@ -189,10 +179,10 @@ in
unzip -q ${mathJaxSrc} -d dependencies/mathjax-27
# As of Chocolate Cosmos, node 18.19.1 is used for runtime
# As of Chocolate Cosmos, node 18.20.3 is used for runtime
# 18.18.2 is still used for build
# see https://github.com/rstudio/rstudio/commit/facb5cf1ab38fe77813aaf36590804e4f865d780
mkdir -p dependencies/common/node/18.19.1
mkdir -p dependencies/common/node/18.20.3
mkdir -p dependencies/pandoc/${pandoc.version}
cp ${pandoc}/bin/pandoc dependencies/pandoc/${pandoc.version}/pandoc

View File

@ -17167,6 +17167,18 @@ final: prev:
meta.homepage = "https://github.com/HerringtonDarkholme/yats.vim/";
};
yazi-nvim = buildVimPlugin {
pname = "yazi.nvim";
version = "2024-06-29";
src = fetchFromGitHub {
owner = "mikavilpas";
repo = "yazi.nvim";
rev = "05849f390175f2ba8fd277b224d4fd9e35455895";
sha256 = "zj+lmxsOEW+YaCk5hb7u454gACUmqYPA/IeW6av4D7k=";
};
meta.homepage = "https://github.com/DreamMaoMao/yazi.nvim";
};
yescapsquit-vim = buildVimPlugin {
pname = "yescapsquit.vim";
version = "2022-08-31";

View File

@ -1446,6 +1446,7 @@ https://github.com/drmingdrmer/xptemplate/,,
https://github.com/guns/xterm-color-table.vim/,,
https://github.com/gbprod/yanky.nvim/,HEAD,
https://github.com/HerringtonDarkholme/yats.vim/,,
https://github.com/mikavilpas/yazi.nvim/,HEAD,
https://github.com/lucasew/yescapsquit.vim/,HEAD,
https://github.com/elkowar/yuck.vim/,HEAD,
https://github.com/KabbAmine/zeavim.vim/,,

View File

@ -6,7 +6,7 @@
cargo-shear,
}:
let
version = "0.0.26";
version = "1.0.0";
in
rustPlatform.buildRustPackage {
pname = "cargo-shear";
@ -16,10 +16,10 @@ rustPlatform.buildRustPackage {
owner = "Boshen";
repo = "cargo-shear";
rev = "v${version}";
hash = "sha256-c3gicJWMiMZ0Suo30XcQoWhHRE3aXdQmSD0K5y2Quec=";
hash = "sha256-onTVA/VH5GrDYBDGKbWOSFeW1RCzDooh3PJxCD39e1o=";
};
cargoHash = "sha256-Clhd8ifbT+it0EGcysJvI9O89qzee9T6EGWlcMO8osE=";
cargoHash = "sha256-63792ztjnGcAiFpHTcaI03PV4dQxhOP2eRNda8MWiqc=";
# https://github.com/Boshen/cargo-shear/blob/a0535415a3ea94c86642f39f343f91af5cdc3829/src/lib.rs#L20-L23
SHEAR_VERSION = version;

View File

@ -6,15 +6,15 @@
}:
let
timestamp = "202405301306";
timestamp = "202406271335";
in
stdenv.mkDerivation (finalAttrs: {
pname = "jdt-language-server";
version = "1.36.0";
version = "1.37.0";
src = fetchurl {
url = "https://download.eclipse.org/jdtls/milestones/${finalAttrs.version}/jdt-language-server-${finalAttrs.version}-${timestamp}.tar.gz";
hash = "sha256-Ao4nTQb0phytT/1W+J70FKj2VhPG0F2UZ2Ubf7A9rns=";
hash = "sha256-0EzZ9N9FzoWunPSVMMcqGjJLFO7nR68m4zdFAONrW9A=";
};
sourceRoot = ".";
@ -29,8 +29,8 @@ stdenv.mkDerivation (finalAttrs: {
# than in the original package. In addition, hard-code the path to the jdk
# in the wrapper, instead of searching for it in PATH at runtime.
substituteInPlace bin/jdtls.py \
--replace "jdtls_base_path = Path(__file__).parent.parent" "jdtls_base_path = Path(\"$out/share/java/jdtls/\")" \
--replace "java_executable = get_java_executable(known_args.validate_java_version)" "java_executable = '${lib.getExe jdk}'"
--replace-fail "jdtls_base_path = Path(__file__).parent.parent" "jdtls_base_path = Path(\"$out/share/java/jdtls/\")" \
--replace-fail "java_executable = get_java_executable(known_args)" "java_executable = '${lib.getExe jdk}'"
'';
installPhase =

View File

@ -1,12 +1,19 @@
{ lib, stdenv, fetchurl, makeWrapper, jre_headless, gawk }:
{
lib,
stdenv,
fetchurl,
makeWrapper,
jre_headless,
gawk,
}:
stdenv.mkDerivation rec {
pname = "nexus";
version = "3.68.1-02";
version = "3.69.0-02";
src = fetchurl {
url = "https://download.sonatype.com/nexus/3/nexus-${version}-unix.tar.gz";
hash = "sha256-VHS4KDFgU3djteDzDAe43TZIwRG/8bb7u3usoOCJS5M=";
hash = "sha256-7sgLPuM93mFEPlTd3qJY+FGVHErvgcTGJWwSBcqBgWI=";
};
preferLocalBuild = true;
@ -15,13 +22,16 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ];
patches = [ ./nexus-bin.patch ./nexus-vm-opts.patch ];
patches = [
./nexus-bin.patch
./nexus-vm-opts.patch
];
postPatch = ''
substituteInPlace bin/nexus.vmoptions \
--replace ../sonatype-work /var/lib/sonatype-work \
--replace etc/karaf $out/etc/karaf \
--replace =. =$out
--replace-fail ../sonatype-work /var/lib/sonatype-work \
--replace-fail etc/karaf $out/etc/karaf \
--replace-fail =. =$out
'';
installPhase = ''
@ -39,12 +49,17 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
meta = with lib; {
meta = {
description = "Repository manager for binary software components";
homepage = "https://www.sonatype.com/products/sonatype-nexus-oss";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.epl10;
platforms = platforms.all;
maintainers = with maintainers; [ aespinosa ironpinguin zaninime ];
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.epl10;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [
aespinosa
ironpinguin
luftmensch-luftmensch
zaninime
];
};
}

View File

@ -0,0 +1,69 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "stevenblack-blocklist";
version = "3.14.84";
src = fetchFromGitHub {
owner = "StevenBlack";
repo = "hosts";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-tahf6mdtmZofwMZfMsuDAqCR/V1qZt6vV+o6t4YTKG0=";
};
outputs = [
# default src fallback
"out"
# base hosts file
"ads"
# extensions only
"fakenews"
"gambling"
"porn"
"social"
];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out $ads $fakenews $gambling $porn $social
# out
find alternates -type f -not -name "hosts" -exec rm {} +
cp -r alternates $out
install -Dm644 hosts $out
# ads
install -Dm644 hosts $ads
# extensions
install -Dm644 alternates/fakenews-only/hosts $fakenews
install -Dm644 alternates/gambling-only/hosts $gambling
install -Dm644 alternates/porn-only/hosts $porn
install -Dm644 alternates/social-only/hosts $social
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Unified hosts file with base extensions";
homepage = "https://github.com/StevenBlack/hosts";
license = licenses.mit;
maintainers = with maintainers; [
moni
Guanran928
frontear
];
};
})

View File

@ -2,12 +2,12 @@
stdenv.mkDerivation rec {
pname = "rgbds";
version = "0.7.0";
version = "0.8.0";
src = fetchFromGitHub {
owner = "gbdev";
repo = "rgbds";
rev = "v${version}";
hash = "sha256-aktKJlwXpHpjSFxoz5wZJPGWZIcn4ax5iBP0GQEux78=";
hash = "sha256-rSPYnbZjCoAKJBNCJCKsLBenolOzS78Zm850BJ8mKhA=";
};
nativeBuildInputs = [ bison flex pkg-config ];
buildInputs = [ libpng ];

View File

@ -4,13 +4,13 @@ let
pkg = buildGoModule rec {
pname = "arduino-cli";
version = "1.0.1";
version = "1.0.2";
src = fetchFromGitHub {
owner = "arduino";
repo = pname;
rev = "v${version}";
hash = "sha256-3VXc0Ksv6swmKEClNF5RRjX68RFLg2IRdBwcVgI5Syo=";
hash = "sha256-lRCkUF0BBX0nej/HxfV9u8NIuA5W0aBKP2xPR8C61NY=";
};
nativeBuildInputs = [
@ -67,8 +67,8 @@ let
description = "Arduino from the command line";
mainProgram = "arduino-cli";
changelog = "https://github.com/arduino/arduino-cli/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ryantm ];
license = [ licenses.gpl3Only licenses.asl20 ];
maintainers = with maintainers; [ ryantm sfrijters ];
};
};

View File

@ -8,14 +8,14 @@
stdenv.mkDerivation rec {
pname = "assimp";
version = "5.4.1";
version = "5.4.2";
outputs = [ "out" "lib" "dev" ];
src = fetchFromGitHub {
owner = "assimp";
repo = "assimp";
rev = "v${version}";
hash = "sha256-F3aaEaHZyOLES6zOYqHRG0BtaKk9d/bAHCtal6FsIWc=";
hash = "sha256-4KpqH3rSNSTAXMFPWAvGTZA4jzKIChHFdtW97sK2EyY=";
};
nativeBuildInputs = [ cmake ];

View File

@ -19,13 +19,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "rocksdb";
version = "9.2.1";
version = "9.3.1";
src = fetchFromGitHub {
owner = "facebook";
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
hash = "sha256-Zifn5Gu/4h6TaEqSaWQ2mFdryeAarqbHWW3fKUGGFac=";
hash = "sha256-bTUzh7ch14TDcm6GkfhA5I/qUVmUm+RE5d2HMZ3zaNc=";
};
patches = [ ./fix-findliburing.patch ];

View File

@ -4,13 +4,13 @@
buildDunePackage rec {
pname = "macaddr";
version = "5.5.0";
version = "5.6.0";
minimalOCamlVersion = "4.04";
src = fetchurl {
url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-${version}.tbz";
hash = "sha256-YokLMW4DV5KtKa8a2XFFbRDe/VJbdLU9sbZ/pCN1wXg=";
hash = "sha256-njBDP9tMpDemqo/7RHuspeunYV+4jnsM2KS0FsMggTM=";
};
checkInputs = [ ppx_sexp_conv ounit2 ];

View File

@ -2,13 +2,13 @@
buildDunePackage rec {
pname = "miou";
version = "0.1.0";
version = "0.2.0";
minimalOCamlVersion = "5.0.0";
src = fetchurl {
url = "https://github.com/robur-coop/miou/releases/download/v${version}/miou-${version}.tbz";
hash = "sha256-WTs6L9j4z1/0wKcGIZVwaNrATRGCTN5A6RwO7tY2phE=";
hash = "sha256-hxYCG1NkDEbVyDvN8eS/Fj6s10YyS7NRGlyNOkLy6sA=";
};
meta = {

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "sensor-state-data";
version = "2.18.0";
version = "2.18.1";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-wYYSS4lABCbIhmUU3z3Wh0+4zwpEzXl8Kk9gi6LBrbQ=";
hash = "sha256-9GdBKUhueis8pnQP5ZNxvEyRXVGINTueVzLOR4xx5mU=";
};
nativeBuildInputs = [ poetry-core ];

View File

@ -4,11 +4,11 @@
stdenv.mkDerivation rec {
pname = "direvent";
version = "5.3";
version = "5.4";
src = fetchurl {
url = "mirror://gnu/direvent/direvent-${version}.tar.gz";
sha256 = "sha256-lAWop32kn+krvkrxi/kl/5H20zdMELfXAKAxusuUxJc=";
sha256 = "sha256-HbvGGSqrZ+NFclFIYD1XDGooKDgMlkIVdir5FSTXlbo=";
};
meta = with lib; {

View File

@ -64,7 +64,7 @@ rustPlatform.buildRustPackage rec {
"--skip=semantic::types::infer::tests::resolve_visible_def"
];
postInstall = ''
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd ruff \
--bash <($out/bin/ruff generate-shell-completion bash) \
--fish <($out/bin/ruff generate-shell-completion fish) \

View File

@ -5,16 +5,16 @@
buildGoModule rec {
pname = "gcsfuse";
version = "2.2.0";
version = "2.3.1";
src = fetchFromGitHub {
owner = "googlecloudplatform";
repo = "gcsfuse";
rev = "v${version}";
hash = "sha256-ecTwC0FHg0MHBkrsydTam4UfylldZQp06t/1BYUwgUI=";
hash = "sha256-FxBVNJVcVdAAvkIWzFmWiVdrVEQ4eQGGo8tmrlcH+6k=";
};
vendorHash = "sha256-GmLyYtgiUBd09mUktjNhbPN5QCUb9VNUzA0xT5mzQ0Q=";
vendorHash = "sha256-9eUUjcRQ/H3iPO2F+KE0nd5+b8slc6xacXSZt3jytgU=";
subPackages = [ "." "tools/mount_gcsfuse" ];

View File

@ -1,24 +0,0 @@
{ lib, fetchFromGitHub }:
let
version = "3.14.79";
in
fetchFromGitHub {
name = "stevenblack-blocklist-${version}";
owner = "StevenBlack";
repo = "hosts";
rev = version;
hash = "sha256-MfQGu+Y4/A0GKIu9d//U+yiP0fN/7cWhEo2dut4UvcE=";
meta = with lib; {
description = "Unified hosts file with base extensions";
homepage = "https://github.com/StevenBlack/hosts";
license = licenses.mit;
maintainers = with maintainers; [
moni
Guanran928
frontear
];
};
}

View File

@ -13160,8 +13160,6 @@ with pkgs;
staticjinja = with python3.pkgs; toPythonApplication staticjinja;
stevenblack-blocklist = callPackage ../tools/networking/stevenblack-blocklist { };
stress = callPackage ../tools/system/stress { };
stress-ng = callPackage ../tools/system/stress-ng { };
@ -18996,10 +18994,6 @@ with pkgs;
nix-build-uncached = callPackage ../development/tools/misc/nix-build-uncached { };
nexus = callPackage ../development/tools/repository-managers/nexus {
jre_headless = jre8_headless;
};
nexusmods-app-unfree = callPackage ../by-name/ne/nexusmods-app/package.nix {
enableUnfree = true;
};