Skip to content

Commit

Permalink
Merge master into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 10, 2025
2 parents 3ad0b42 + 3f14b85 commit f2e88ea
Show file tree
Hide file tree
Showing 102 changed files with 697 additions and 365 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13364,6 +13364,12 @@
githubId = 37505890;
name = "Luis Wirth";
};
lu1a = {
email = "[email protected]";
github = "lu1a";
githubId = 83420438;
name = "Lewis";
};
LucaGuerra = {
email = "[email protected]";
github = "LucaGuerra";
Expand Down
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@
+services.asusd.asusdConfig.text = '''file contents'''
```

- `linuxPackages.nvidiaPackages.stable` now defaults to the `production` variant instead of `latest`.

- `timescaledb` requires manual upgrade steps.
After you run ALTER EXTENSION, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull requests [#6797](https://github.com/timescale/timescaledb/pull/6797).
PostgreSQL 13 is no longer supported in TimescaleDB v2.16.
Expand Down
13 changes: 13 additions & 0 deletions nixos/modules/programs/wayland/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@ in
}
];

warnings =
lib.mkIf
(
(lib.elem "nvidia" config.services.xserver.videoDrivers)
&& !config.hardware.nvidia.open
&& (lib.versionOlder "551" (
lib.versions.major (lib.getVersion config.hardware.nvidia.package)
))
)
[
"Using Sway with Nvidia driver version <= 550 may result in a broken system. Configure hardware.nvidia.package to use a newer version."
];

environment = {
systemPackages = lib.optional (cfg.package != null) cfg.package ++ cfg.extraPackages;

Expand Down
32 changes: 19 additions & 13 deletions pkgs/applications/backup/vorta/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
lib,
stdenv,
python3Packages,
fetchFromGitHub,
wrapQtAppsHook,
borgbackup,
qtbase,
qtwayland,
stdenv,
borgbackup,
versionCheckHook,
makeFontsConf,
qtbase,
}:

python3Packages.buildPythonApplication rec {
Expand All @@ -23,26 +24,29 @@ python3Packages.buildPythonApplication rec {
};

nativeBuildInputs = [
python3Packages.setuptools
wrapQtAppsHook
];

buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
qtwayland
];

propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [
setuptools
];

dependencies = with python3Packages; [
packaging
peewee
pyqt6
platformdirs
psutil
pyqt6
secretstorage
setuptools
platformdirs
];

postPatch = ''
substituteInPlace src/vorta/assets/metadata/com.borgbase.Vorta.desktop \
--replace com.borgbase.Vorta "com.borgbase.Vorta-symbolic"
--replace-fail com.borgbase.Vorta "com.borgbase.Vorta-symbolic"
'';

postInstall = ''
Expand All @@ -61,7 +65,9 @@ python3Packages.buildPythonApplication rec {
pytest-qt
pytest-mock
pytestCheckHook
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];

preCheck =
let
Expand Down Expand Up @@ -89,13 +95,13 @@ python3Packages.buildPythonApplication rec {
"tests/network_manager/test_darwin.py"
];

meta = with lib; {
meta = {
changelog = "https://github.com/borgbase/vorta/releases/tag/v${version}";
description = "Desktop Backup Client for Borg";
homepage = "https://vorta.borgbase.com/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ma27 ];
platforms = platforms.linux;
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ ma27 ];
platforms = lib.platforms.linux;
mainProgram = "vorta";
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/editors/neovim/tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Here are some common neovim flags used in the tests:
, neovim-unwrapped
, fetchFromGitLab
, runCommandLocal
, testers
, pkgs
}:
let
Expand Down Expand Up @@ -107,8 +108,7 @@ in

inherit nmt;

# Disabled because of https://github.com/NixOS/nixpkgs/pull/352727
# failed_check = pkgs.testers.testBuildFailure nvim-run-failing-check;
failed_check = testers.testBuildFailure nvim-run-failing-check;

vim_empty_config = vimUtils.vimrcFile { beforePlugins = ""; customRC = ""; };

Expand Down
25 changes: 25 additions & 0 deletions pkgs/applications/editors/vim/plugins/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,18 @@ final: prev:
meta.homepage = "https://github.com/Saghen/blink.compat/";
};

blink-emoji-nvim = buildVimPlugin {
pname = "blink-emoji.nvim";
version = "2025-01-04";
src = fetchFromGitHub {
owner = "moyiz";
repo = "blink-emoji.nvim";
rev = "81e6c080d1e64c9ef548534c51147fd8063481c8";
sha256 = "1kh5sblmnkspdjhcski2dghmkv2asw35k1cib1227h21rlalqc67";
};
meta.homepage = "https://github.com/moyiz/blink-emoji.nvim/";
};

blink-ripgrep-nvim = buildVimPlugin {
pname = "blink-ripgrep.nvim";
version = "2025-01-04";
Expand Down Expand Up @@ -4918,6 +4930,19 @@ final: prev:
meta.homepage = "https://github.com/junegunn/gv.vim/";
};

gx-nvim = buildVimPlugin {
pname = "gx.nvim";
version = "2025-01-07";
src = fetchFromGitHub {
owner = "chrishrb";
repo = "gx.nvim";
rev = "c7e6a0ace694a098a5248d92a866c290bd2da1cc";
sha256 = "14cjwnsrjdfhqx0hbd6j1b9lm668a6c3f72wklx66vp18qy0pafb";
fetchSubmodules = true;
};
meta.homepage = "https://github.com/chrishrb/gx.nvim/";
};

hardhat-nvim = buildVimPlugin {
pname = "hardhat.nvim";
version = "2024-09-22";
Expand Down
16 changes: 16 additions & 0 deletions pkgs/applications/editors/vim/plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
typescript,
vim,
which,
xdg-utils,
xdotool,
xkb-switch,
xorg,
Expand Down Expand Up @@ -265,6 +266,10 @@ in
dependencies = [ self.copilot-lua ];
};

blink-emoji-nvim = super.blink-emoji-nvim.overrideAttrs {
dependencies = [ self.blink-cmp ];
};

bluloco-nvim = super.bluloco-nvim.overrideAttrs {
dependencies = [ self.lush-nvim ];
};
Expand Down Expand Up @@ -1183,6 +1188,17 @@ in
dependencies = [ self.guard-nvim ];
};

gx-nvim = super.gx-nvim.overrideAttrs {
patches = lib.optionals stdenv.hostPlatform.isLinux [
(substituteAll {
src = ./patches/gx-nvim/fix-paths.patch;
inherit xdg-utils;
})
];

nvimRequireCheck = "gx";
};

hardhat-nvim = super.hardhat-nvim.overrideAttrs {
dependencies = with self; [
overseer-nvim
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lua/gx/init.lua b/lua/gx/init.lua
index 12272d4..c51771a 100644
--- a/lua/gx/init.lua
+++ b/lua/gx/init.lua
@@ -73,7 +73,7 @@ local function get_open_browser_app()
if sysname == "Darwin" then
app = "open"
elseif sysname == "Linux" then
- app = "xdg-open"
+ app = "@xdg-utils@/bin/xdg-open"
elseif sysname == "Windows_NT" then
app = "powershell.exe"
end
2 changes: 2 additions & 0 deletions pkgs/applications/editors/vim/plugins/vim-plugin-names
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ https://github.com/max397574/better-escape.nvim/,,
https://github.com/LunarVim/bigfile.nvim/,,
https://github.com/APZelos/blamer.nvim/,HEAD,
https://github.com/giuxtaposition/blink-cmp-copilot/,HEAD,
https://github.com/moyiz/blink-emoji.nvim/,HEAD,
https://github.com/mikavilpas/blink-ripgrep.nvim/,HEAD,
https://github.com/Saghen/blink.compat/,HEAD,
https://github.com/HampusHauffman/block.nvim/,HEAD,
Expand Down Expand Up @@ -407,6 +408,7 @@ https://github.com/nvimdev/guard.nvim/,HEAD,
https://github.com/nmac427/guess-indent.nvim/,HEAD,
https://github.com/sjl/gundo.vim/,,
https://github.com/junegunn/gv.vim/,,
https://github.com/chrishrb/gx.nvim/,HEAD,
https://github.com/TheSnakeWitcher/hardhat.nvim/,HEAD,
https://github.com/m4xshen/hardtime.nvim/,HEAD,
https://git.sr.ht/~sircmpwn/hare.vim,HEAD,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "shellcheck";
publisher = "timonwong";
version = "0.37.3";
sha256 = "sha256-bVddcoj0zO+pWySg7JOGXqLJeJnoet3Lo/I1ctd0znk=";
version = "0.37.4";
sha256 = "sha256-+DFoHjb5sl9s5Vqw7onsv+MKjS4+loGVnZsF9/e+7dQ=";
};
nativeBuildInputs = [
jq
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/mkgmap/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ let
in
stdenv.mkDerivation rec {
pname = "mkgmap";
version = "4922";
version = "4923";

src = fetchsvn {
url = "https://svn.mkgmap.org.uk/mkgmap/mkgmap/trunk";
rev = version;
sha256 = "sha256-LgGdV6l9tjRR4BpGTDTm0MeAq2uiOe7Pv0qv87nbbWw=";
sha256 = "sha256-tB/0VFLn/ch7XWPz1sJ3kqy/1U5Hk1yV9+wq7ohTRWw=";
};

patches = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

buildGoModule rec {
pname = "helm-unittest";
version = "0.7.0";
version = "0.7.1";

src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-Ma/UcG+DkUR2FqRKFGMjPxMXDrbcbytZVi59zaK1W0k=";
hash = "sha256-TZ2qY0aJHIJq9gd522NJyNkUDYQuICyTsUnQBf34Pq0=";
};

vendorHash = "sha256-7LI08qFcNRyZEZXVWpu2PR2PwpRlcTLIcE05Y5YgABg=";
vendorHash = "sha256-kMQIXN7Qu39MUFUHtLl1vnNv2qOUUcDhGes1MJ2Nh64=";

# NOTE: Remove the install and upgrade hooks.
postPatch = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -858,13 +858,13 @@
"vendorHash": null
},
"newrelic": {
"hash": "sha256-xHBr+6rI0G6Fv7HXTrdvtDc+Ij53IfPAb7bvXgyTaH0=",
"hash": "sha256-kyfNlLVzrNMLKGCahpbzeyqvFYPug6RyPPxCnxwP/W4=",
"homepage": "https://registry.terraform.io/providers/newrelic/newrelic",
"owner": "newrelic",
"repo": "terraform-provider-newrelic",
"rev": "v3.53.0",
"rev": "v3.54.0",
"spdx": "MPL-2.0",
"vendorHash": "sha256-UsekZjrioy2F/OvfrvXMVYlZO3I2NU4B+BOZHwP5YSk="
"vendorHash": "sha256-hxDLJrv7a8JZ6etYS7u+kiIcudJJeB47PKQTE3NzCvI="
},
"nomad": {
"hash": "sha256-k61iQ9FQG3nscBp5CE/fFCbHpeLawbUAtGPM+IZtfVc=",
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/version-management/git-absorb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@

rustPlatform.buildRustPackage rec {
pname = "git-absorb";
version = "0.6.16";
version = "0.6.17";

src = fetchFromGitHub {
owner = "tummychow";
repo = "git-absorb";
tag = version;
hash = "sha256-5ZCCrq/mc9FAjl7AMbuQyRak5sL1dG3qWnrdNzUu4Ss=";
hash = "sha256-wtXqJfI/I0prPip3AbfFk0OvPja6oytPsl6hFtZ6b50=";
};

nativeBuildInputs = [ installShellFiles ];

cargoHash = "sha256-CzZgAjAIJryhFEJve3E62rg4QGRPSvBMuFZJzHGf09w=";
cargoHash = "sha256-R9hh696KLoYUfJIe3X4X1VHOpPmv1fhZ55y8muVAdRI=";

postInstall =
''
Expand Down
7 changes: 6 additions & 1 deletion pkgs/build-support/testers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
testBuildFailure = drv: drv.overrideAttrs (orig: {
builder = buildPackages.bash;
args = [
(replaceVars ./expect-failure.sh { coreutils = buildPackages.coreutils; })
(replaceVars ./expect-failure.sh {
coreutils = buildPackages.coreutils;
vars = lib.toShellVars {
outputNames = (orig.outputs or [ "out" ]);
};
})
orig.realBuilder or stdenv.shell
] ++ orig.args or ["-e" (orig.builder or ../../stdenv/generic/default-builder.sh)];
});
Expand Down
34 changes: 21 additions & 13 deletions pkgs/build-support/testers/expect-failure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,28 @@ echo "testBuildFailure: Original builder produced exit code: $r"

# -----------------------------------------
# Write the build log to the default output

# Source structured attrs as per nixpkgs/pkgs/stdenv/generic/default-builder.sh
#
# We need this so that we can read $outputs when `__structuredAttrs` is enabled
#
# # from stdenv setup.sh
getAllOutputNames() {
if [ -n "$__structuredAttrs" ]; then
echo "${!outputs[*]}"
else
echo "$outputs"
fi
}
# NOTE: This MUST be done after the original builder has finished!
# Otherwise we could pollute its environment.
if [ -e "${NIX_ATTRS_SH_FILE:-}" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi

outs=( $(getAllOutputNames) )
defOut=${outs[0]}
defOutPath=${!defOut}
# Variables injected by replaceVars
#
# `$outputs` is unordered when `__structuredAttrs` is enabled,
# so we use `replaceVars` to pass in an ordered `$outputNames` array
@vars@

declare -a outputPaths
for name in "${outputNames[@]}"; do
# Either dereference $name, or access $outputs[] associative array
outputPath=${!name:-${outputs[$name]}}
outputPaths+=( "$outputPath" )
done
defOutPath=${outputPaths[0]}

if [[ ! -d $defOutPath ]]; then
if [[ -e $defOutPath ]]; then
Expand All @@ -63,8 +72,7 @@ echo $r >$defOutPath/testBuildFailure.exit
# ------------------------------------------------------
# Put empty directories in place for any missing outputs

for outputName in ${outputs:-out}; do
outputPath="${!outputName}"
for outputPath in "${outputPaths[@]}"; do
if [[ ! -e "${outputPath}" ]]; then
@coreutils@/bin/mkdir "${outputPath}";
fi
Expand Down
Loading

0 comments on commit f2e88ea

Please sign in to comment.