Skip to content

Commit a0509da

Browse files
Merge master into staging-next
2 parents 0df29a7 + 57cd3fb commit a0509da

File tree

128 files changed

+4851
-1672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+4851
-1672
lines changed

maintainers/scripts/nixpkgs-lint.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ stdenv.mkDerivation {
2828
wrapProgram $out/bin/nixpkgs-lint --set PERL5LIB $PERL5LIB
2929
'';
3030

31-
meta = with lib; {
32-
maintainers = [ maintainers.eelco ];
31+
meta = {
32+
maintainers = [ lib.maintainers.eelco ];
3333
description = "A utility for Nixpkgs contributors to check Nixpkgs for common errors";
3434
mainProgram = "nixpkgs-lint";
35-
platforms = platforms.unix;
35+
platforms = lib.platforms.unix;
3636
};
3737
}

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
- `nixos-rebuild-ng`, a full rewrite of `nixos-rebuild` in Python, is available for testing. You can enable it by setting [system.rebuild.enableNg](options.html#opt-system.rebuild.enableNg) in your configuration (this will replace the old `nixos-rebuild`), or by adding `nixos-rebuild-ng` to your `environment.systemPackages` (in this case, it will live side-by-side with `nixos-rebuild` as `nixos-rebuild-ng`). It is expected that the next major version of NixOS (25.11) will enable `system.rebuild.enableNg` by default.
2828
- A `nixos-rebuild build-image` sub-command has been added.
2929

30+
- `nixos-option` has been rewritten to a Nix expression called by a simple bash script. This lowers our maintenance threshold, makes eval errors less verbose, adds support for flake-based configurations, descending into `attrsOf` and `listOf` submodule options, and `--show-trace`.
31+
3032
It allows users to build platform-specific (disk) images from their NixOS configurations. `nixos-rebuild build-image` works similar to the popular [nix-community/nixos-generators](https://github.com/nix-community/nixos-generators) project. See new [section on image building in the nixpkgs manual](https://nixos.org/manual/nixpkgs/unstable/#sec-image-nixos-rebuild-build-image).
3133

3234
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

nixos/modules/services/networking/dhcpcd.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ in
249249
ExecReload = "${dhcpcd}/sbin/dhcpcd --rebind";
250250
Restart = "always";
251251
AmbientCapabilities = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
252+
CapabilityBoundingSet = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
252253
ReadWritePaths = [ "/proc/sys/net/ipv4" ]
253254
++ lib.optional cfgN.enableIPv6 "/proc/sys/net/ipv6"
254255
++ lib.optionals useResolvConf ([ "/run/resolvconf" ] ++ config.networking.resolvconf.subscriberFiles);
@@ -276,7 +277,7 @@ in
276277
RestrictSUIDSGID = true;
277278
SystemCallFilter = [
278279
"@system-service"
279-
"~@aio" "~@chown" "~@keyring" "~@memlock"
280+
"~@aio" "~@keyring" "~@memlock" "~@mount" "~@privileged" "~@resources"
280281
];
281282
SystemCallArchitectures = "native";
282283
UMask = "0027";

pkgs/applications/audio/youtube-music/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ stdenv.mkDerivation (finalAttrs: {
8989
exec = "youtube-music %u";
9090
icon = "youtube-music";
9191
desktopName = "YouTube Music";
92-
startupWMClass = "YouTube Music";
92+
startupWMClass = "com.github.th_ch.youtube_music";
9393
categories = [ "AudioVideo" ];
9494
})
9595
];

pkgs/applications/editors/vscode/extensions/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5589,8 +5589,8 @@ let
55895589
mktplcRef = {
55905590
name = "pretty-ts-errors";
55915591
publisher = "yoavbls";
5592-
version = "0.5.4";
5593-
hash = "sha256-SMEqbpKYNck23zgULsdnsw4PS20XMPUpJ5kYh1fpd14=";
5592+
version = "0.6.1";
5593+
hash = "sha256-LvX21nEjgayNd9q+uXkahmdYwzfWBZOhQaF+clFUUF4=";
55945594
};
55955595
meta = {
55965596
description = "Make TypeScript errors prettier and human-readable in VSCode";

pkgs/applications/networking/browsers/firefox-bin/release_sources.nix

Lines changed: 620 additions & 414 deletions
Large diffs are not rendered by default.

pkgs/applications/networking/browsers/firefox/common.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ in
6767
, glib
6868
, gnum4
6969
, gtk3
70-
, icu72
7170
, icu73
71+
, icu74
7272
, libGL
7373
, libGLU
7474
, libevent
@@ -268,6 +268,12 @@ buildStdenv.mkDerivation {
268268
hash = "sha256-2IpdSyye3VT4VB95WurnyRFtdN1lfVtYpgEiUVhfNjw=";
269269
})
270270
]
271+
++ lib.optionals ((lib.versionAtLeast version "129" && lib.versionOlder version "134") || lib.versionOlder version "128.6.0") [
272+
# Python 3.12.8 compat
273+
# https://bugzilla.mozilla.org/show_bug.cgi?id=1935621
274+
# https://phabricator.services.mozilla.com/D231480
275+
./mozbz-1935621-attachment-9442305.patch
276+
]
271277
++ [
272278
# LLVM 19 turned on WASM reference types by default, exposing a bug
273279
# that broke the Mozilla WASI build. Supposedly, it has been fixed
@@ -286,10 +292,6 @@ buildStdenv.mkDerivation {
286292
url = "https://hg.mozilla.org/integration/autoland/raw-rev/23a9f6555c7c";
287293
hash = "sha256-CRywalJlRMFVLITEYXxpSq3jLPbUlWKNRHuKLwXqQfU=";
288294
})
289-
# Python 3.12.8 compat
290-
# https://bugzilla.mozilla.org/show_bug.cgi?id=1935621
291-
# https://phabricator.services.mozilla.com/D231480
292-
./mozbz-1935621-attachment-9442305.patch
293295
# Fix for missing vector header on macOS
294296
# https://bugzilla.mozilla.org/show_bug.cgi?id=1939405
295297
./firefox-mac-missing-vector-header.patch
@@ -526,11 +528,9 @@ buildStdenv.mkDerivation {
526528
++ lib.optional sndioSupport sndio
527529
++ lib.optionals waylandSupport [ libxkbcommon libdrm ]
528530
))
529-
# icu73 changed how it follows symlinks which breaks in the firefox sandbox
530-
# https://bugzilla.mozilla.org/show_bug.cgi?id=1839287
531531
# icu74 fails to build on 127 and older
532532
# https://bugzilla.mozilla.org/show_bug.cgi?id=1862601
533-
++ [ (if (lib.versionAtLeast version "115") then icu73 else icu72) ]
533+
++ [ (if (lib.versionAtLeast version "134") then icu74 else icu73) ]
534534
++ lib.optional gssSupport libkrb5
535535
++ lib.optional jemallocSupport jemalloc
536536
++ extraBuildInputs;

pkgs/applications/networking/browsers/firefox/packages/firefox-esr-128.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
buildMozillaMach rec {
1111
pname = "firefox";
12-
version = "128.5.2esr";
12+
version = "128.6.0esr";
1313
src = fetchurl {
1414
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
15-
sha512 = "1e5b6bfe63279acc8b7350c08f2767620f01b979057f50ab1952331b6efc05124f7c9530a7cc793b0f3616344334a2903fe5712bbb45418e936684d294c5530a";
15+
sha512 = "49bce966e062766861712bd65cca46a438b339fe31598f69e4fe64da78ef6f8b4581c1d502341ef1c032aafaab2f4f88e69cb93a0b845ba7173fec277ae695b5";
1616
};
1717

1818
meta = {

pkgs/applications/networking/browsers/firefox/packages/firefox.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
buildMozillaMach rec {
1111
pname = "firefox";
12-
version = "133.0.3";
12+
version = "134.0";
1313
src = fetchurl {
1414
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
15-
sha512 = "ce48beaa5bb1717d9b6dbfff035b1bb5de1456df14b6a91adfaf3ccfb7ac550ab7ee854546231424a920e01d981825253609fce2ec326c4aa1ca316bbbdb31f8";
15+
sha512 = "1275a686dc0a27b48df4ae05616511512f676e03474e3095b2521eac25a385d345aa3e8786716dbe812af49e07d72b32772479089d648968e2004ca0c9c35344";
1616
};
1717

1818
meta = {

pkgs/applications/networking/cluster/terraform-providers/providers.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@
171171
"vendorHash": null
172172
},
173173
"bitbucket": {
174-
"hash": "sha256-fvSy0gnSQkpSCfKlmOQW+ItMi6utocsDB6ex4RZMvGo=",
174+
"hash": "sha256-cHuBfF0R/n03Y5KNnbdsWcGeX24+NPT2HnsQpTivCf0=",
175175
"homepage": "https://registry.terraform.io/providers/DrFaust92/bitbucket",
176176
"owner": "DrFaust92",
177177
"repo": "terraform-provider-bitbucket",
178-
"rev": "v2.42.0",
178+
"rev": "v2.45.1",
179179
"spdx": "MPL-2.0",
180-
"vendorHash": "sha256-oDMKf39uNMO9/kyiZ1IuZlj2yIF1q5Z3wewxEBh3yso="
180+
"vendorHash": "sha256-iNY6Jz/SKOLynx33smDFbg371Wa31CouNtrOuV7lkcw="
181181
},
182182
"bitwarden": {
183183
"hash": "sha256-zvl9B1RhViJ83/7i9ab1KvQc9Yfpzq3c1JIz+bzwVmM=",

pkgs/applications/version-management/p4/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ stdenv.mkDerivation (finalAttrs: rec {
4545
sha256 = "sha256-6+DOJPeVzP4x0UsN9MlZRAyusapBTICX0BuyvVBQBC8=";
4646
};
4747

48+
postPatch = lib.optionals stdenv.hostPlatform.isDarwin ''
49+
# same error as https://github.com/pocoproject/poco/issues/4586
50+
substituteInPlace zlib/zutil.h \
51+
--replace-fail '#if defined(MACOS) || defined(TARGET_OS_MAC)' '#if defined(MACOS)'
52+
'';
53+
4854
nativeBuildInputs = [ jam ];
4955

5056
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [

pkgs/by-name/al/alt-tab-macos/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
stdenvNoCC.mkDerivation (finalAttrs: {
1010
pname = "alt-tab-macos";
11-
version = "7.14.1";
11+
version = "7.18.0";
1212

1313
src = fetchurl {
1414
url = "https://github.com/lwouis/alt-tab-macos/releases/download/v${finalAttrs.version}/AltTab-${finalAttrs.version}.zip";
15-
hash = "sha256-62+2N+TjKq+TdJuaOizpiSvGQnkC2+VhBX+3A2QepwI=";
15+
hash = "sha256-9+XK+rDyV2V4RIAfMR2EUcSf6AEpQKAOLDp6RXb5Wb8=";
1616
};
1717

1818
sourceRoot = ".";

pkgs/by-name/am/amdvlk/package.nix

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
callPackage,
44
lib,
55
fetchRepoProject,
6-
writeScript,
6+
nix-update-script,
77
cmake,
88
directx-shader-compiler,
99
glslang,
@@ -27,13 +27,13 @@ let
2727
in
2828
stdenv.mkDerivation (finalAttrs: {
2929
pname = "amdvlk";
30-
version = "2024.Q4.2";
30+
version = "2024.Q4.3";
3131

3232
src = fetchRepoProject {
3333
name = "amdvlk-src";
3434
manifest = "https://github.com/GPUOpen-Drivers/AMDVLK.git";
3535
rev = "refs/tags/v-${finalAttrs.version}";
36-
hash = "sha256-16eHtdxoSCVEPQNvi7Kuo7CP4yddMsZqpuRsWobEOnw=";
36+
hash = "sha256-PQxTRCSOk8E6y7pXyqxt1QKtRsqnrj/9dQZ8NjnUbhA=";
3737
};
3838

3939
buildInputs =
@@ -102,23 +102,14 @@ stdenv.mkDerivation (finalAttrs: {
102102
# Keep the rpath, otherwise vulkaninfo and vkcube segfault
103103
dontPatchELF = true;
104104

105-
passthru.updateScript = writeScript "update.sh" ''
106-
#!/usr/bin/env nix-shell
107-
#!nix-shell -i bash -p coreutils curl gnused jq common-updater-scripts
108-
109-
packagePath="pkgs/by-name/am/amdvlk/package.nix"
110-
111-
function setHash() {
112-
sed -i $packagePath -e 's,sha256 = "[^'"'"'"]*",sha256 = "'"$1"'",'
113-
}
114-
115-
version="$(curl -sL "https://api.github.com/repos/GPUOpen-Drivers/AMDVLK/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
116-
sed -i $packagePath -e 's/version = "[^'"'"'"]*"/version = "'"$version"'"/'
117-
118-
setHash "$(nix-instantiate --eval -A lib.fakeSha256 | xargs echo)"
119-
hash="$(nix to-base64 $(nix-build -A amdvlk 2>&1 | tail -n3 | grep 'got:' | cut -d: -f2- | xargs echo || true))"
120-
setHash "$hash"
121-
'';
105+
passthru.updateScript = nix-update-script {
106+
extraArgs = [
107+
"--url"
108+
"https://github.com/GPUOpen-Drivers/AMDVLK"
109+
"--version-regex"
110+
"v-(.*)"
111+
];
112+
};
122113

123114
passthru.impureTests = {
124115
amdvlk = callPackage ./test.nix { };

pkgs/by-name/be/bearer/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
buildGoModule rec {
1010
pname = "bearer";
11-
version = "1.47.0";
11+
version = "1.48.0";
1212

1313
src = fetchFromGitHub {
1414
owner = "bearer";
1515
repo = "bearer";
1616
tag = "v${version}";
17-
hash = "sha256-yr5ik+DxOcW3UFK6KiPvheGlDdwSz2s7DKm2vAsSwG0=";
17+
hash = "sha256-M9Usz+qQH4QNA/0TgtvjuqwnaCpyxr9OMIc8pJ/FjDE=";
1818
};
1919

2020
vendorHash = "sha256-A0zy5O2+afhn6jAfLd/k7wvL3z1PVI0e6bO39cnYrhM=";

pkgs/by-name/bo/boxbuddy/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111
rustPlatform.buildRustPackage rec {
1212
pname = "boxbuddy";
13-
version = "2.5.1";
13+
version = "2.5.2";
1414

1515
src = fetchFromGitHub {
1616
owner = "Dvlv";
1717
repo = "BoxBuddyRS";
1818
rev = version;
19-
hash = "sha256-W+SeleZsQbHw0sS7du8AylERt1FBxxLUvnxfvS9YQGM=";
19+
hash = "sha256-wtAc5h3bm/X1aCPGjl30NaM7XR602q5NdlamUQvADDo=";
2020
};
2121

22-
cargoHash = "sha256-nFBLhCxHmdF7WvYcmt5aLVhCO/q1LLgMldc7nofX+CU=";
22+
cargoHash = "sha256-oyxO92wXVN7kbIcTy5OAaqK/ySnetpkFwcop34ERpxs=";
2323

2424
# The software assumes it is installed either in flatpak or in the home directory
2525
# so the xdg data path needs to be patched here

pkgs/by-name/br/broot/package.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
makeWrapper,
88
pkg-config,
99
libgit2,
10-
oniguruma,
1110
zlib,
1211
buildPackages,
1312
withClipboard ? true,
@@ -33,11 +32,9 @@ rustPlatform.buildRustPackage rec {
3332
pkg-config
3433
];
3534

36-
# TODO: once https://github.com/Canop/broot/issues/956 is released, oniguruma can be removed.
3735
buildInputs =
3836
[
3937
libgit2
40-
oniguruma
4138
]
4239
++ lib.optionals stdenv.hostPlatform.isDarwin [
4340
zlib

pkgs/by-name/ca/casadi/clang-19.diff

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
diff --git a/casadi/interfaces/clang/clang_compiler.hpp b/casadi/interfaces/clang/clang_compiler.hpp
2+
index 7f54853..9f8d4b1 100644
3+
--- a/casadi/interfaces/clang/clang_compiler.hpp
4+
+++ b/casadi/interfaces/clang/clang_compiler.hpp
5+
@@ -52,7 +52,7 @@
6+
#include "llvm/IR/LLVMContext.h"
7+
//#include "llvm/IR/Verifier.h"
8+
#include <llvm/Support/FileSystem.h>
9+
-#include <llvm/Support/Host.h>
10+
+#include <llvm/TargetParser/Host.h>
11+
#include <llvm/Support/ManagedStatic.h>
12+
#include <llvm/Support/Path.h>
13+
#include <llvm/Support/TargetSelect.h>
14+
diff --git a/cmake/FindCLANG.cmake b/cmake/FindCLANG.cmake
15+
index 4edf60b..f23a348 100644
16+
--- a/cmake/FindCLANG.cmake
17+
+++ b/cmake/FindCLANG.cmake
18+
@@ -16,7 +16,7 @@ set(CLANG_CXX_FLAGS "-fPIC -fvisibility-inlines-hidden -ffunction-sections -fdat
19+
set(CLANG_INCLUDE_DIR ${LLVM_INSTALL_PREFIX}/include)
20+
21+
# All clang libraries
22+
-set(CLANG_DEP clangFrontend clangDriver clangCodeGen clangRewriteFrontend clangSerialization clangParse clangSema clangAnalysis clangEdit clangAST clangLex clangBasic ${LLVM_DEP})
23+
+set(CLANG_DEP clangFrontend clangDriver clangCodeGen clangRewriteFrontend clangSerialization clangParse clangSema clangAPINotes clangAnalysis clangEdit clangAST clangLex clangBasic ${LLVM_DEP})
24+
25+
# Get libraries
26+
set(CLANG_LIBRARIES)
27+
@@ -86,7 +86,7 @@ set(CLANG_INCLUDE_DIR ${CLANG_LLVM_INCLUDE_DIR})
28+
29+
# All clang libraries
30+
set(CLANG_DEP clangFrontend clangDriver clangCodeGen clangRewriteFrontend clangSerialization
31+
- clangParse clangSema clangAnalysis clangEdit clangAST clangLex clangBasic)
32+
+ clangParse clangSema clangAPINotes clangAnalysis clangEdit clangAST clangLex clangBasic)
33+
34+
# Get libraries
35+
foreach(D ${CLANG_DEP})

pkgs/by-name/ca/casadi/package.nix

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
lib,
1818
ipopt,
1919
lapack,
20-
llvmPackages_17, # llvm/Support/Host.h required by casadi 3.6.5 and not available in llvm 18
20+
llvmPackages,
2121
mumps,
22+
ninja,
2223
osqp,
2324
pkg-config,
2425
pythonSupport ? false,
@@ -52,6 +53,9 @@ stdenv.mkDerivation (finalAttrs: {
5253
url = "https://github.com/casadi/casadi/pull/3899/commits/274f4b23f73e60c5302bec0479fe1e92682b63d2.patch";
5354
hash = "sha256-3GWEWlN8dKLD6htpnOQLChldcT3hE09JWLeuCfAhY+4=";
5455
})
56+
# update include file path and link with clangAPINotes
57+
# https://github.com/casadi/casadi/issues/3969
58+
./clang-19.diff
5559
];
5660

5761
postPatch =
@@ -64,7 +68,7 @@ stdenv.mkDerivation (finalAttrs: {
6468
# nix provide lib/clang headers in libclang, not in llvm.
6569
substituteInPlace casadi/interfaces/clang/CMakeLists.txt --replace-fail \
6670
'$'{CLANG_LLVM_LIB_DIR} \
67-
${lib.getLib llvmPackages_17.libclang}/lib
71+
${lib.getLib llvmPackages.libclang}/lib
6872
6973
# help casadi find its own libs
7074
substituteInPlace casadi/core/casadi_os.cpp --replace-fail \
@@ -101,6 +105,7 @@ stdenv.mkDerivation (finalAttrs: {
101105

102106
nativeBuildInputs = [
103107
cmake
108+
ninja
104109
pkg-config
105110
];
106111

@@ -118,9 +123,9 @@ stdenv.mkDerivation (finalAttrs: {
118123
hpipm
119124
ipopt
120125
lapack
121-
llvmPackages_17.clang
122-
llvmPackages_17.libclang
123-
llvmPackages_17.llvm
126+
llvmPackages.clang
127+
llvmPackages.libclang
128+
llvmPackages.llvm
124129
mumps
125130
osqp
126131
proxsuite
@@ -140,7 +145,7 @@ stdenv.mkDerivation (finalAttrs: {
140145
python3Packages.numpy
141146
python3Packages.python
142147
]
143-
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages_17.openmp ];
148+
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ];
144149

145150
cmakeFlags = [
146151
(lib.cmakeBool "WITH_PYTHON" pythonSupport)

0 commit comments

Comments
 (0)