!UNVBThoJtlIiVwiDjU:nixos.org

Staging

311 Members
Staging merges | Running staging cycles: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Astaging-next+head%3Astaging-next-25.05 | Review Reports: https://malob.github.io/nix-review-tools-reports/107 Servers

Load older messages


SenderMessageTime
28 Oct 2025
@emilazy:matrix.orgemily can we make stdenv.isFoo warn as well? 😆 17:56:16
@emilazy:matrix.orgemilymaybe something for early 26.0517:56:21
@emilazy:matrix.orgemily looking at the diff, runCommandNoCC, runCommandNoCCLocal, and maybe utillinux seem like the main things worth turning into warnings instead of throws 18:00:22
@artturin:matrix.orgArtturinYou sure?18:00:30
@emilazy:matrix.orgemily might also be good to adjust the python throw error message 18:00:47
@emilazy:matrix.orgemily since it currently recommends people use python2 😆 18:00:51
@emilazy:matrix.orgemilyI'll PR those18:00:53
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nixpkgs/actions/runs/18828351853/job/53715047703?pr=45606518:01:01
@emilazy:matrix.orgemilythis is what happened when I forgot the commit reverting turning those into throws18:01:08
@emilazy:matrix.orgemily vcunat: btw, warning aliases used in NixOS tests won't block/fail anything on Hydra, right? because the warning check there is only in the release checks? 18:01:40
@emilazy:matrix.orgemily is it possible to make Hydra do the equivalent of NIX_ABORT_ON_WARN instead of checking it in release checks, so that those are caught in the same way warnings in packages are? 18:02:10
@artturin:matrix.orgArtturinOk I can take care of those18:03:18
@emilazy:matrix.orgemilyno rush18:04:09
@emilazy:matrix.orgemilybut I do have a PR to attach warnings to them18:04:24
@emilazy:matrix.orgemily for system it's kind of annoying, I had to do a __toString thing to stop it from spamming nix search :) 18:04:45
@artturin:matrix.orgArtturin :p tests shows only one *Platform attribute missing
platformEquality = «error: attribute 'buildPlatform' missing»;
18:04:51
@emilazy:matrix.orgemily I can put a PR up for that and handling runCommandNoCC 18:04:58
@hexa:lossy.networkhexa We should just point python to python 3 18:05:23
@hexa:lossy.networkhexaIt will be a great surprise18:05:29
@artturin:matrix.orgArtturin
diff --git a/pkgs/test/top-level/default.nix b/pkgs/test/top-level/default.nix
index a5b44afb8522..e713b617f8dd 100644
--- a/pkgs/test/top-level/default.nix
+++ b/pkgs/test/top-level/default.nix
@@ -61,7 +61,7 @@ lib.recurseIntoAttrs {
       pkgsLocal = map nixpkgsFun configsLocal;
       pkgsCross = map nixpkgsFun configsCross;
     in
-    assert lib.all (p: p.buildPlatform == p.hostPlatform) pkgsLocal;
-    assert lib.all (p: p.buildPlatform != p.hostPlatform) pkgsCross;
+    assert lib.all (p: p.stdenv.buildPlatform == p.stdenv.hostPlatform) pkgsLocal;
+    assert lib.all (p: p.stdenv.buildPlatform != p.stdenv.hostPlatform) pkgsCross;
     pkgs.emptyFile;
 }
18:05:29
@artturin:matrix.orgArtturinRemoving it completely might be better18:06:15
@artturin:matrix.orgArtturinBut not as good of a surprise18:06:28
@hexa:lossy.networkhexaBut where is the fun in that18:06:33
@emilazy:matrix.orgemily making it a throw is what my PR automatically did, because the alias is old 18:07:42
@emilazy:matrix.orgemily but I will adjust the throw text to say "use Python 3 instead" 18:07:47
@emilazy:matrix.orgemily freeing up the namespace will be nice, it's awkward that python is used as a generic-Python argument in places but also exists at the top level as an alias 18:08:12
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/45651218:10:35
@emilazy:matrix.orgemily does anyone want to merge https://github.com/NixOS/nixpkgs/pull/456060 so I have fewer aliases.nix conflicts to resolve later 😆 18:14:50
@emilazy:matrix.orgemily do we want to keep forceSystem around? 18:21:32
@emilazy:matrix.orgemilyI've never seen anyone use it18:21:33

Show newer messages


Back to Room ListRoom Version: 6